
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_group_float(char
   const*, unsigned int, char, char const*, char*, char*, int&) const */

void __thiscall
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_group_float
          (num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,
          uint param_2,char param_3,char *param_4,char *param_5,char *param_6,int *param_7)

{
  char *pcVar1;
  size_t __n;
  int iVar2;
  
  if (param_4 != (char *)0x0) {
    pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4);
    iVar2 = 0;
    __n = *param_7 - ((int)param_4 - (int)param_6);
    if (__n != 0) {
      memcpy(pcVar1,param_4,__n);
      iVar2 = *param_7 - ((int)param_4 - (int)param_6);
    }
    *param_7 = (int)(pcVar1 + (iVar2 - (int)param_5));
    return;
  }
  pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_6 + *param_7);
  *param_7 = (int)pcVar1 - (int)param_5;
  return;
}



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

void FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,
                 void *param_5,int param_6,int param_7,int *param_8)

{
  void *__dest;
  size_t __n;
  int iVar1;
  
  if (param_5 != (void *)0x0) {
    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);
    iVar1 = 0;
    __n = *param_8 - ((int)param_5 - param_7);
    if (__n != 0) {
      memcpy(__dest,param_5,__n);
      iVar1 = *param_8 - ((int)param_5 - param_7);
    }
    *param_8 = (int)__dest + (iVar1 - param_6);
    return;
  }
  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);
  *param_8 = iVar1 - param_6;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x16a507
SUB ESP,0x1c
MOV EBP,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x48]
MOV ESI,dword ptr [ESP + 0x4c]
MOVSX EDX,byte ptr [ESP + 0x3c]
TEST EBP,EBP
JZ 0x00197b78
SUB ESP,0x8
MOV EDI,EBP
PUSH EBP
SUB EDI,EAX
PUSH EAX
PUSH dword ptr [ESP + 0x48]
PUSH ECX
PUSH EDX
PUSH dword ptr [ESP + 0x60]
CALL 0x00197980
XOR EDX,EDX
MOV ECX,EAX
SUB ECX,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0x2c],ECX
MOV ECX,dword ptr [ESI]
ADD ESP,0x20
SUB ECX,EDI
JNZ 0x00197b60
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,EDX
MOV dword ptr [ESI],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH ECX
PUSH EBP
PUSH EAX
CALL 0x000265c0
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
SUB EDX,EDI
JMP 0x00197b48
MOV EDI,dword ptr [ESI]
SUB ESP,0x8
ADD EDI,EAX
PUSH EDI
PUSH EAX
PUSH dword ptr [ESP + 0x48]
PUSH ECX
PUSH EDX
PUSH dword ptr [ESP + 0x60]
CALL 0x00197980
SUB EAX,dword ptr [ESP + 0x64]
ADD ESP,0x20
MOV dword ptr [ESI],EAX
ADD ESP,0x1c
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_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}\n\n" comment (function_definition "void FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}" primitive_type (function_declarator "FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) , (parameter_declaration "void *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }" if (parenthesized_expression "(param_5 != (void *)0x0)" ( (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }" { (expression_statement "__dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);" (assignment_expression "__dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" identifier = (cast_expression "(void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" identifier (argument_list "(param_6,(int)param_4,param_2,param_3,param_7,param_5)" ( identifier , (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "__n = *param_8 - ((int)param_5 - param_7);" (assignment_expression "__n = *param_8 - ((int)param_5 - param_7)" identifier = (binary_expression "*param_8 - ((int)param_5 - param_7)" (pointer_expression "*param_8" * identifier) - (parenthesized_expression "((int)param_5 - param_7)" ( (binary_expression "(int)param_5 - param_7" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (if_statement "if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }" { (expression_statement "memcpy(__dest,param_5,__n);" (call_expression "memcpy(__dest,param_5,__n)" identifier (argument_list "(__dest,param_5,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *param_8 - ((int)param_5 - param_7);" (assignment_expression "iVar1 = *param_8 - ((int)param_5 - param_7)" identifier = (binary_expression "*param_8 - ((int)param_5 - param_7)" (pointer_expression "*param_8" * identifier) - (parenthesized_expression "((int)param_5 - param_7)" ( (binary_expression "(int)param_5 - param_7" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) })) (expression_statement "*param_8 = (int)__dest + (iVar1 - param_6);" (assignment_expression "*param_8 = (int)__dest + (iVar1 - param_6)" (pointer_expression "*param_8" * identifier) = (binary_expression "(int)__dest + (iVar1 - param_6)" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(iVar1 - param_6)" ( (binary_expression "iVar1 - param_6" identifier - identifier) )))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);" (assignment_expression "iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" identifier = (call_expression "FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" identifier (argument_list "(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" ( identifier , (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , identifier , identifier , (binary_expression "*param_8 + param_7" (pointer_expression "*param_8" * identifier) + identifier) )))) ;) (expression_statement "*param_8 = iVar1 - param_6;" (assignment_expression "*param_8 = iVar1 - param_6" (pointer_expression "*param_8" * identifier) = (binary_expression "iVar1 - param_6" identifier - identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_group_float(char\n   const*, unsigned int, char, char const*, char*, char*, int&) const */\n\nvoid __thiscall\nstd::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_group_float\n          (num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,\n          uint param_2,char param_3,char *param_4,char *param_5,char *param_6,int *param_7)\n\n{\n  char *pcVar1;\n  size_t __n;\n  int iVar2;\n  \n  if (param_4 != (char *)0x0) {\n    pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4);\n    iVar2 = 0;\n    __n = *param_7 - ((int)param_4 - (int)param_6);\n    if (__n != 0) {\n      memcpy(pcVar1,param_4,__n);\n      iVar2 = *param_7 - ((int)param_4 - (int)param_6);\n    }\n    *param_7 = (int)(pcVar1 + (iVar2 - (int)param_5));\n    return;\n  }\n  pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_6 + *param_7);\n  *param_7 = (int)pcVar1 - (int)param_5;\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_group_float\n          (num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,\n          uint param_2,char param_3,char *param_4,char *param_5,char *param_6,int *param_7)\n\n{\n  char *pcVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>>::_M_group_float\n          (num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,\n          uint param_2,char param_3,char *param_4,char *param_5,char *param_6,int *param_7)\n\n{\n  char" identifier : : identifier < primitive_type >> > : : (function_declarator "_M_group_float\n          (num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,\n          uint param_2,char param_3,char *param_4,char *param_5,char *param_6,int *param_7)" identifier (parameter_list "(num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,\n          uint param_2,char param_3,char *param_4,char *param_5,char *param_6,int *param_7)" ( (parameter_declaration "num_put" type_identifier) (ERROR "<char" < primitive_type) , (parameter_declaration "std::ostreambuf_iterator" type_identifier (ERROR "::" : :) identifier) (ERROR "<char" < primitive_type) , (parameter_declaration "std::char_traits<char>>> *this" type_identifier (ERROR "::char_traits<char>>>" : : identifier < primitive_type >> >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "int *param_7" primitive_type (pointer_declarator "*param_7" * identifier)) ))) { primitive_type) (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_4 != (char *)0x0) {\n    pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4);\n    iVar2 = 0;\n    __n = *param_7 - ((int)param_4 - (int)param_6);\n    if (__n != 0) {\n      memcpy(pcVar1,param_4,__n);\n      iVar2 = *param_7 - ((int)param_4 - (int)param_6);\n    }\n    *param_7 = (int)(pcVar1 + (iVar2 - (int)param_5));\n    return;\n  }" if (parenthesized_expression "(param_4 != (char *)0x0)" ( (binary_expression "param_4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4);\n    iVar2 = 0;\n    __n = *param_7 - ((int)param_4 - (int)param_6);\n    if (__n != 0) {\n      memcpy(pcVar1,param_4,__n);\n      iVar2 = *param_7 - ((int)param_4 - (int)param_6);\n    }\n    *param_7 = (int)(pcVar1 + (iVar2 - (int)param_5));\n    return;\n  }" { (expression_statement "pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4);" (assignment_expression "pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4)" identifier = (binary_expression "__add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_4)" (binary_expression "__add_grouping<char" identifier < identifier) > (parenthesized_expression "(param_5,param_3,param_1,param_2,param_6,param_4)" ( (comma_expression "param_5,param_3,param_1,param_2,param_6,param_4" identifier , (comma_expression "param_3,param_1,param_2,param_6,param_4" identifier , (comma_expression "param_1,param_2,param_6,param_4" identifier , (comma_expression "param_2,param_6,param_4" identifier , (comma_expression "param_6,param_4" identifier , identifier))))) )))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "__n = *param_7 - ((int)param_4 - (int)param_6);" (assignment_expression "__n = *param_7 - ((int)param_4 - (int)param_6)" identifier = (binary_expression "*param_7 - ((int)param_4 - (int)param_6)" (pointer_expression "*param_7" * identifier) - (parenthesized_expression "((int)param_4 - (int)param_6)" ( (binary_expression "(int)param_4 - (int)param_6" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (__n != 0) {\n      memcpy(pcVar1,param_4,__n);\n      iVar2 = *param_7 - ((int)param_4 - (int)param_6);\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      memcpy(pcVar1,param_4,__n);\n      iVar2 = *param_7 - ((int)param_4 - (int)param_6);\n    }" { (expression_statement "memcpy(pcVar1,param_4,__n);" (call_expression "memcpy(pcVar1,param_4,__n)" identifier (argument_list "(pcVar1,param_4,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = *param_7 - ((int)param_4 - (int)param_6);" (assignment_expression "iVar2 = *param_7 - ((int)param_4 - (int)param_6)" identifier = (binary_expression "*param_7 - ((int)param_4 - (int)param_6)" (pointer_expression "*param_7" * identifier) - (parenthesized_expression "((int)param_4 - (int)param_6)" ( (binary_expression "(int)param_4 - (int)param_6" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*param_7 = (int)(pcVar1 + (iVar2 - (int)param_5));" (assignment_expression "*param_7 = (int)(pcVar1 + (iVar2 - (int)param_5))" (pointer_expression "*param_7" * identifier) = (cast_expression "(int)(pcVar1 + (iVar2 - (int)param_5))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar1 + (iVar2 - (int)param_5))" ( (binary_expression "pcVar1 + (iVar2 - (int)param_5)" identifier + (parenthesized_expression "(iVar2 - (int)param_5)" ( (binary_expression "iVar2 - (int)param_5" identifier - (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_6 + *param_7);" (assignment_expression "pcVar1 = __add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_6 + *param_7)" identifier = (binary_expression "__add_grouping<char>(param_5,param_3,param_1,param_2,param_6,param_6 + *param_7)" (binary_expression "__add_grouping<char" identifier < identifier) > (parenthesized_expression "(param_5,param_3,param_1,param_2,param_6,param_6 + *param_7)" ( (comma_expression "param_5,param_3,param_1,param_2,param_6,param_6 + *param_7" identifier , (comma_expression "param_3,param_1,param_2,param_6,param_6 + *param_7" identifier , (comma_expression "param_1,param_2,param_6,param_6 + *param_7" identifier , (comma_expression "param_2,param_6,param_6 + *param_7" identifier , (comma_expression "param_6,param_6 + *param_7" identifier , (binary_expression "param_6 + *param_7" identifier + (pointer_expression "*param_7" * identifier))))))) )))) ;) (expression_statement "*param_7 = (int)pcVar1 - (int)param_5;" (assignment_expression "*param_7 = (int)pcVar1 - (int)param_5" (pointer_expression "*param_7" * identifier) = (binary_expression "(int)pcVar1 - (int)param_5" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}\n\n" (function_definition "void FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}" primitive_type (function_declarator "FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) , (parameter_declaration "void *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }" if (parenthesized_expression "(param_5 != (void *)0x0)" ( (binary_expression "param_5 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }" { (expression_statement "__dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);" (assignment_expression "__dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" identifier = (cast_expression "(void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" identifier (argument_list "(param_6,(int)param_4,param_2,param_3,param_7,param_5)" ( identifier , (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "__n = *param_8 - ((int)param_5 - param_7);" (assignment_expression "__n = *param_8 - ((int)param_5 - param_7)" identifier = (binary_expression "*param_8 - ((int)param_5 - param_7)" (pointer_expression "*param_8" * identifier) - (parenthesized_expression "((int)param_5 - param_7)" ( (binary_expression "(int)param_5 - param_7" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (if_statement "if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }" { (expression_statement "memcpy(__dest,param_5,__n);" (call_expression "memcpy(__dest,param_5,__n)" identifier (argument_list "(__dest,param_5,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = *param_8 - ((int)param_5 - param_7);" (assignment_expression "iVar1 = *param_8 - ((int)param_5 - param_7)" identifier = (binary_expression "*param_8 - ((int)param_5 - param_7)" (pointer_expression "*param_8" * identifier) - (parenthesized_expression "((int)param_5 - param_7)" ( (binary_expression "(int)param_5 - param_7" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) })) (expression_statement "*param_8 = (int)__dest + (iVar1 - param_6);" (assignment_expression "*param_8 = (int)__dest + (iVar1 - param_6)" (pointer_expression "*param_8" * identifier) = (binary_expression "(int)__dest + (iVar1 - param_6)" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(iVar1 - param_6)" ( (binary_expression "iVar1 - param_6" identifier - identifier) )))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);" (assignment_expression "iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" identifier = (call_expression "FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" identifier (argument_list "(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" ( identifier , (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) , identifier , identifier , identifier , (binary_expression "*param_8 + param_7" (pointer_expression "*param_8" * identifier) + identifier) )))) ;) (expression_statement "*param_8 = iVar1 - param_6;" (assignment_expression "*param_8 = iVar1 - param_6" (pointer_expression "*param_8" * identifier) = (binary_expression "iVar1 - param_6" identifier - 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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT , IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT , IDENT , IDENT , (binary_expression (pointer_expression * IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT - IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)\n\n{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00197af0(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)" (identifier "FUN_00197af0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,char param_4,\n                 void *param_5,int param_6,int param_7,int *param_8)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) (, ",") (parameter_declaration "void *param_5" (primitive_type "void") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) (, ",") (parameter_declaration "int *param_8" (primitive_type "int") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  void *__dest;\n  size_t __n;\n  int iVar1;\n  \n  if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }\n  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);\n  *param_8 = iVar1 - param_6;\n  return;\n}" ({ "{") (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_5 != (void *)0x0) {\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }" (if "if") (parenthesized_expression "(param_5 != (void *)0x0)" (( "(") (binary_expression "param_5 != (void *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);\n    iVar1 = 0;\n    __n = *param_8 - ((int)param_5 - param_7);\n    if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }\n    *param_8 = (int)__dest + (iVar1 - param_6);\n    return;\n  }" ({ "{") (expression_statement "__dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);" (assignment_expression "__dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5)" (identifier "FUN_00197980") (argument_list "(param_6,(int)param_4,param_2,param_3,param_7,param_5)" (( "(") (identifier "param_6") (, ",") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_7") (, ",") (identifier "param_5") () ")"))))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "__n = *param_8 - ((int)param_5 - param_7);" (assignment_expression "__n = *param_8 - ((int)param_5 - param_7)" (identifier "__n") (= "=") (binary_expression "*param_8 - ((int)param_5 - param_7)" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (- "-") (parenthesized_expression "((int)param_5 - param_7)" (( "(") (binary_expression "(int)param_5 - param_7" (cast_expression "(int)param_5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_5")) (- "-") (identifier "param_7")) () ")")))) (; ";")) (if_statement "if (__n != 0) {\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      memcpy(__dest,param_5,__n);\n      iVar1 = *param_8 - ((int)param_5 - param_7);\n    }" ({ "{") (expression_statement "memcpy(__dest,param_5,__n);" (call_expression "memcpy(__dest,param_5,__n)" (identifier "memcpy") (argument_list "(__dest,param_5,__n)" (( "(") (identifier "__dest") (, ",") (identifier "param_5") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "iVar1 = *param_8 - ((int)param_5 - param_7);" (assignment_expression "iVar1 = *param_8 - ((int)param_5 - param_7)" (identifier "iVar1") (= "=") (binary_expression "*param_8 - ((int)param_5 - param_7)" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (- "-") (parenthesized_expression "((int)param_5 - param_7)" (( "(") (binary_expression "(int)param_5 - param_7" (cast_expression "(int)param_5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_5")) (- "-") (identifier "param_7")) () ")")))) (; ";")) (} "}"))) (expression_statement "*param_8 = (int)__dest + (iVar1 - param_6);" (assignment_expression "*param_8 = (int)__dest + (iVar1 - param_6)" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (binary_expression "(int)__dest + (iVar1 - param_6)" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (parenthesized_expression "(iVar1 - param_6)" (( "(") (binary_expression "iVar1 - param_6" (identifier "iVar1") (- "-") (identifier "param_6")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);" (assignment_expression "iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" (identifier "iVar1") (= "=") (call_expression "FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" (identifier "FUN_00197980") (argument_list "(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7)" (( "(") (identifier "param_6") (, ",") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_7") (, ",") (binary_expression "*param_8 + param_7" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (+ "+") (identifier "param_7")) () ")")))) (; ";")) (expression_statement "*param_8 = iVar1 - param_6;" (assignment_expression "*param_8 = iVar1 - param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (binary_expression "iVar1 - param_6" (identifier "iVar1") (- "-") (identifier "param_6"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_group_float(char
   const*, unsigned int, char, char const*, char*, char*, int&) const */

void __thiscall
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_group_float
          (num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>> *this,char *param_1,
          uint param_2,char param_3,char *var_1,char *param_5,char *var_8,int *param_7)

{
  char *var_6;
  size_t var_4;
  int var_7;
  
  if (var_1 != (char *)0x0) {
    var_6 = var_2<var_3>(param_5,param_3,param_1,param_2,var_8,var_1);
    var_7 = 0;
    var_4 = *param_7 - ((int)var_1 - (int)var_8);
    if (var_4 != 0) {
      var_5(var_6,var_1,var_4);
      var_7 = *param_7 - ((int)var_1 - (int)var_8);
    }
    *param_7 = (int)(var_6 + (var_7 - (int)param_5));
    return;
  }
  var_6 = var_2<var_3>(param_5,param_3,param_1,param_2,var_8,var_8 + *param_7);
  *param_7 = (int)var_6 - (int)param_5;
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (identifier) (identifier) (identifier) (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) 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,undefined4 param_3,char param_4,
                 void *param_5,int param_6,int param_7,int *param_8)

{
  void *__dest;
  size_t __n;
  int iVar1;
  
  if (param_5 != (void *)0x0) {
    __dest = (void *)FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,param_5);
    iVar1 = 0;
    __n = *param_8 - ((int)param_5 - param_7);
    if (__n != 0) {
      memcpy(__dest,param_5,__n);
      iVar1 = *param_8 - ((int)param_5 - param_7);
    }
    *param_8 = (int)__dest + (iVar1 - param_6);
    return;
  }
  iVar1 = FUN_00197980(param_6,(int)param_4,param_2,param_3,param_7,*param_8 + param_7);
  *param_8 = iVar1 - param_6;
  return;
}

