
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::locale::_Impl::_M_replace_category(std::locale::_Impl const*, std::locale::id const* const*)
    */

void __thiscall std::locale::_Impl::_M_replace_category(_Impl *this,_Impl *param_1,id **param_2)

{
  id *piVar1;
  
  piVar1 = *param_2;
  while (piVar1 != (id *)0x0) {
    param_2 = param_2 + 1;
    _M_replace_facet(this,param_1,piVar1);
    piVar1 = *param_2;
  }
  return;
}



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

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

{
  int iVar1;
  
  iVar1 = *param_3;
  while (iVar1 != 0) {
    param_3 = param_3 + 1;
    FUN_001af260(param_1,param_2,iVar1);
    iVar1 = *param_3;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x18fd37
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x28]
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x001af300
LEA ESI,[ESI]
SUB ESP,0x4
ADD EBP,0x4
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x001af260
MOV EAX,dword ptr [EBP]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001af2e8
ADD ESP,0xc
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\nvoid FUN_001af2c0(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001af2c0(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001af2c0(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (while_statement "while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "FUN_001af260(param_1,param_2,iVar1);" (call_expression "FUN_001af260(param_1,param_2,iVar1)" identifier (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::locale::_Impl::_M_replace_category(std::locale::_Impl const*, std::locale::id const* const*)\n    */\n\nvoid __thiscall std::locale::_Impl::_M_replace_category(_Impl *this,_Impl *param_1,id **param_2)\n\n{\n  id *piVar1;\n  \n  piVar1 = *param_2;\n  while (piVar1 != (id *)0x0) {\n    param_2 = param_2 + 1;\n    _M_replace_facet(this,param_1,piVar1);\n    piVar1 = *param_2;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::locale::_Impl::_M_replace_category(_Impl *this,_Impl *param_1,id **param_2)\n\n{\n  id *piVar1;\n  \n  piVar1 = *param_2;\n  while (piVar1 != (id *)0x0) {\n    param_2 = param_2 + 1;\n    _M_replace_facet(this,param_1,piVar1);\n    piVar1 = *param_2;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::" identifier : : identifier : : identifier : :) (function_declarator "_M_replace_category(_Impl *this,_Impl *param_1,id **param_2)" identifier (parameter_list "(_Impl *this,_Impl *param_1,id **param_2)" ( (parameter_declaration "_Impl *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "_Impl *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "id **param_2" type_identifier (pointer_declarator "**param_2" * (pointer_declarator "*param_2" * identifier))) ))) (compound_statement "{\n  id *piVar1;\n  \n  piVar1 = *param_2;\n  while (piVar1 != (id *)0x0) {\n    param_2 = param_2 + 1;\n    _M_replace_facet(this,param_1,piVar1);\n    piVar1 = *param_2;\n  }\n  return;\n}" { (declaration "id *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *param_2;" (assignment_expression "piVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (piVar1 != (id *)0x0) {\n    param_2 = param_2 + 1;\n    _M_replace_facet(this,param_1,piVar1);\n    piVar1 = *param_2;\n  }" while (parenthesized_expression "(piVar1 != (id *)0x0)" ( (binary_expression "piVar1 != (id *)0x0" identifier != (cast_expression "(id *)0x0" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    _M_replace_facet(this,param_1,piVar1);\n    piVar1 = *param_2;\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "_M_replace_facet(this,param_1,piVar1);" (call_expression "_M_replace_facet(this,param_1,piVar1)" identifier (argument_list "(this,param_1,piVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "piVar1 = *param_2;" (assignment_expression "piVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001af2c0(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001af2c0(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001af2c0(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (while_statement "while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "FUN_001af260(param_1,param_2,iVar1);" (call_expression "FUN_001af260(param_1,param_2,iVar1)" identifier (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001af2c0(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001af2c0(undefined4 param_1,undefined4 param_2,int *param_3)" (identifier "FUN_001af2c0") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_3;\n  while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" (identifier "iVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (while_statement "while (iVar1 != 0) {\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = param_3 + 1;\n    FUN_001af260(param_1,param_2,iVar1);\n    iVar1 = *param_3;\n  }" ({ "{") (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_001af260(param_1,param_2,iVar1);" (call_expression "FUN_001af260(param_1,param_2,iVar1)" (identifier "FUN_001af260") (argument_list "(param_1,param_2,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = *param_3;" (assignment_expression "iVar1 = *param_3" (identifier "iVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::locale::_Impl::_M_replace_category(std::locale::_Impl const*, std::locale::id const* const*)
    */

void __thiscall std::locale::type_1::function_1(type_1 *this,type_1 *param_1,type_2 **var_2)

{
  type_2 *var_1;
  
  var_1 = *var_2;
  while (var_1 != (type_2 *)0x0) {
    var_2 = var_2 + 1;
    var_3(this,param_1,var_1);
    var_1 = *var_2;
  }
  return;
}


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

{
  int iVar1;
  
  iVar1 = *param_3;
  while (iVar1 != 0) {
    param_3 = param_3 + 1;
    FUN_001af260(param_1,param_2,iVar1);
    iVar1 = *param_3;
  }
  return;
}

