
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::collate<wchar_t>::collate(__locale_struct*, unsigned int) */

void __thiscall
std::collate<wchar_t>::collate(collate<wchar_t> *this,__locale_struct *param_1,uint param_2)

{
  undefined4 uVar1;
  
  *(uint *)(this + 4) = (uint)(param_2 != 0);
  *(undefined ***)this = &PTR__collate_0038dc48;
  uVar1 = locale::facet::_S_clone_c_locale(&param_1);
  *(undefined4 *)(this + 8) = uVar1;
  return;
}



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

void FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  
  param_1[1] = (uint)(param_3 != 0);
  *param_1 = &PTR_FUN_0038dc48;
  uVar1 = FUN_0022f2b0(&param_2);
  param_1[2] = uVar1;
  return;
}


PUSH ESI
XOR EAX,EAX
PUSH EBX
CALL 0x00035840
ADD EBX,0x1530d7
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [ESP + 0x1c]
TEST EDX,EDX
SETNZ AL
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[EBX + 0xffffec40]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
LEA EAX,[ESP + 0x20]
PUSH EAX
CALL 0x0022f2b0
MOV dword ptr [ESI + 0x8],EAX
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_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}\n\n" comment (function_definition "void FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "param_1[1] = (uint)(param_3 != 0);" (assignment_expression "param_1[1] = (uint)(param_3 != 0)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*param_1 = &PTR_FUN_0038dc48;" (assignment_expression "*param_1 = &PTR_FUN_0038dc48" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0038dc48" & identifier)) ;) (expression_statement "uVar1 = FUN_0022f2b0(&param_2);" (assignment_expression "uVar1 = FUN_0022f2b0(&param_2)" identifier = (call_expression "FUN_0022f2b0(&param_2)" identifier (argument_list "(&param_2)" ( (pointer_expression "&param_2" & identifier) )))) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::collate<wchar_t>::collate(__locale_struct*, unsigned int) */\n\nvoid __thiscall\nstd::collate<wchar_t>::collate(collate<wchar_t> *this,__locale_struct *param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(undefined ***)this = &PTR__collate_0038dc48;\n  uVar1 = locale::facet::_S_clone_c_locale(&param_1);\n  *(undefined4 *)(this + 8) = uVar1;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\nstd::collate<wchar_t>::collate(collate<wchar_t> *this,__locale_struct *param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(undefined ***)this = &PTR__collate_0038dc48;\n  uVar1 = locale::facet::_S_clone_c_locale(&param_1);\n  *(undefined4 *)(this + 8) = uVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::collate<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "collate(collate<wchar_t> *this,__locale_struct *param_1,uint param_2)" identifier (parameter_list "(collate<wchar_t> *this,__locale_struct *param_1,uint param_2)" ( (parameter_declaration "collate<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__locale_struct *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(undefined ***)this = &PTR__collate_0038dc48;\n  uVar1 = locale::facet::_S_clone_c_locale(&param_1);\n  *(undefined4 *)(this + 8) = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined ***)this = &PTR__collate_0038dc48;" (assignment_expression "*(undefined ***)this = &PTR__collate_0038dc48" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__collate_0038dc48" & identifier)) ;) (ERROR "uVar1 = locale::" (assignment_expression "uVar1 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_clone_c_locale(&param_1);" statement_identifier : (ERROR ":" :) (expression_statement "_S_clone_c_locale(&param_1);" (call_expression "_S_clone_c_locale(&param_1)" identifier (argument_list "(&param_1)" ( (pointer_expression "&param_1" & identifier) ))) ;)) (expression_statement "*(undefined4 *)(this + 8) = uVar1;" (assignment_expression "*(undefined4 *)(this + 8) = uVar1" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}\n\n" (function_definition "void FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "param_1[1] = (uint)(param_3 != 0);" (assignment_expression "param_1[1] = (uint)(param_3 != 0)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*param_1 = &PTR_FUN_0038dc48;" (assignment_expression "*param_1 = &PTR_FUN_0038dc48" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0038dc48" & identifier)) ;) (expression_statement "uVar1 = FUN_0022f2b0(&param_2);" (assignment_expression "uVar1 = FUN_0022f2b0(&param_2)" identifier = (call_expression "FUN_0022f2b0(&param_2)" identifier (argument_list "(&param_2)" ( (pointer_expression "&param_2" & identifier) )))) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0023bf20(undefined4 *param_1,undefined4 param_2,int param_3)" (identifier "FUN_0023bf20") (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  param_1[1] = (uint)(param_3 != 0);\n  *param_1 = &PTR_FUN_0038dc48;\n  uVar1 = FUN_0022f2b0(&param_2);\n  param_1[2] = uVar1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "param_1[1] = (uint)(param_3 != 0);" (assignment_expression "param_1[1] = (uint)(param_3 != 0)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_0038dc48;" (assignment_expression "*param_1 = &PTR_FUN_0038dc48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_0038dc48" (& "&") (identifier "PTR_FUN_0038dc48"))) (; ";")) (expression_statement "uVar1 = FUN_0022f2b0(&param_2);" (assignment_expression "uVar1 = FUN_0022f2b0(&param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0022f2b0(&param_2)" (identifier "FUN_0022f2b0") (argument_list "(&param_2)" (( "(") (pointer_expression "&param_2" (& "&") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::collate<wchar_t>::collate(__locale_struct*, unsigned int) */

void __thiscall
std::function_1<wchar_t>::function_1(function_1<wchar_t> *var_1,type_1 *param_1,type_2 var_2)

{
  type_3 uVar1;
  
  *(type_2 *)(var_1 + 4) = (type_2)(var_2 != 0);
  *(type_4 ***)var_1 = &PTR__collate_0038dc48;
  uVar1 = locale::facet::var_3(&param_1);
  *(type_3 *)(var_1 + 8) = uVar1;
  return;
}


(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: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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,int param_3)

{
  undefined4 uVar1;
  
  param_1[1] = (uint)(param_3 != 0);
  *param_1 = &PTR_FUN_0038dc48;
  uVar1 = FUN_0022f2b0(&param_2);
  param_1[2] = uVar1;
  return;
}

