
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::ctype<char>::_M_widen_init() const */

void __thiscall std::ctype<char>::_M_widen_init(ctype<char> *this)

{
  ctype<char> *__s2;
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 local_11c [63];
  undefined4 local_20;
  undefined1 local_1c [12];
  
  iVar1 = 0;
  do {
    *(char *)((int)local_11c + iVar1) = (char)iVar1;
    iVar1 = iVar1 + 1;
  } while (iVar1 != 0x100);
  __s2 = this + 0x1d;
  if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c) {
    *(undefined4 *)(this + 0x1d) = local_11c[0];
    *(undefined4 *)(this + 0x119) = local_20;
    iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);
    puVar3 = (undefined4 *)((int)local_11c - iVar1);
    puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);
    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {
      *puVar4 = *puVar3;
      puVar3 = puVar3 + 1;
      puVar4 = puVar4 + 1;
    }
  }
  else {
    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);
  }
  this[0x1c] = (ctype<char>)0x1;
  iVar1 = memcmp(local_11c,__s2,0x100);
  if (iVar1 != 0) {
    this[0x1c] = (ctype<char>)0x2;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_001c66b0(int *param_1)

{
  void *__s2;
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 local_11c [63];
  undefined4 local_20;
  undefined1 local_1c [12];
  
  iVar1 = 0;
  do {
    *(char *)((int)local_11c + iVar1) = (char)iVar1;
    iVar1 = iVar1 + 1;
  } while (iVar1 != 0x100);
  __s2 = (void *)((int)param_1 + 0x1d);
  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {
    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);
    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];
    *(undefined4 *)((int)param_1 + 0x119) = local_20;
    iVar1 = (int)__s2 - (int)puVar4;
    puVar3 = (undefined4 *)((int)local_11c - iVar1);
    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {
      *puVar4 = *puVar3;
      puVar3 = puVar3 + 1;
      puVar4 = puVar4 + 1;
    }
  }
  else {
    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);
  }
  *(undefined1 *)(param_1 + 7) = 1;
  iVar1 = memcmp(local_11c,__s2,0x100);
  if (iVar1 != 0) {
    *(undefined1 *)(param_1 + 7) = 2;
  }
  return;
}


CALL 0x0004fb76
ADD EAX,0x13b94b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x11c
MOV EBP,dword ptr [ESP + 0x130]
MOV dword ptr [ESP + 0x8],EAX
LEA EBX,[ESP + 0x10]
XOR EAX,EAX
LEA ESI,[ESI]
MOV byte ptr [EBX + EAX*0x1],AL
ADD EAX,0x1
CMP EAX,0x100
JNZ 0x001c66d8
MOV EAX,dword ptr [EBP]
MOV EDI,dword ptr [ESP + 0x8]
LEA EDX,[EBP + 0x1d]
MOV EAX,dword ptr [EAX + 0x1c]
CMP EAX,dword ptr [EDI + 0xffffff9c]
JNZ 0x001c6751
MOV EAX,dword ptr [EBX]
LEA EDI,[EBP + 0x21]
MOV ESI,EBX
AND EDI,0xfffffffc
MOV dword ptr [EBP + 0x1d],EAX
MOV EAX,dword ptr [EBX + 0xfc]
MOV dword ptr [EDX + 0xfc],EAX
MOV EAX,EDX
SUB EAX,EDI
LEA ECX,[EAX + 0x100]
SUB ESI,EAX
SHR ECX,0x2
MOVSD.REP ES:EDI,ESI
SUB ESP,0x4
MOV byte ptr [EBP + 0x1c],0x1
PUSH 0x100
PUSH EDX
PUSH EBX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00026130
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001c6746
MOV byte ptr [EBP + 0x1c],0x2
ADD ESP,0x11c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EDX
LEA ECX,[ESP + 0x114]
MOV dword ptr [ESP + 0x10],EDX
PUSH ECX
PUSH EBX
PUSH EBP
CALL EAX
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
JMP 0x001c6724
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_001c66b0(int *param_1)\n\n{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001c66b0(int *param_1)\n\n{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001c66b0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}" { (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_11c [63];" type_identifier (array_declarator "local_11c [63]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined1 local_1c [12];" type_identifier (array_declarator "local_1c [12]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);" do (compound_statement "{\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "*(char *)((int)local_11c + iVar1) = (char)iVar1;" (assignment_expression "*(char *)((int)local_11c + iVar1) = (char)iVar1" (pointer_expression "*(char *)((int)local_11c + iVar1)" * (cast_expression "(char *)((int)local_11c + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_11c + iVar1)" ( (binary_expression "(int)local_11c + iVar1" (cast_expression "(int)local_11c" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x100)" ( (binary_expression "iVar1 != 0x100" identifier != number_literal) )) ;) (expression_statement "__s2 = (void *)((int)param_1 + 0x1d);" (assignment_expression "__s2 = (void *)((int)param_1 + 0x1d)" identifier = (cast_expression "(void *)((int)param_1 + 0x1d)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c)" ( (binary_expression "*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c" (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_00301f9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }" { (expression_statement "puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((int)param_1 + 0x21U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x21U & 0xfffffffc)" ( (binary_expression "(int)param_1 + 0x21U & 0xfffffffc" (binary_expression "(int)param_1 + 0x21U" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal) )))) ;) (expression_statement "*(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];" (assignment_expression "*(undefined4 *)((int)param_1 + 0x1d) = local_11c[0]" (pointer_expression "*(undefined4 *)((int)param_1 + 0x1d)" * (cast_expression "(undefined4 *)((int)param_1 + 0x1d)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (subscript_expression "local_11c[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)param_1 + 0x119) = local_20;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x119) = local_20" (pointer_expression "*(undefined4 *)((int)param_1 + 0x119)" * (cast_expression "(undefined4 *)((int)param_1 + 0x119)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x119)" ( (binary_expression "(int)param_1 + 0x119" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = (int)__s2 - (int)puVar4;" (assignment_expression "iVar1 = (int)__s2 - (int)puVar4" identifier = (binary_expression "(int)__s2 - (int)puVar4" (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar3 = (undefined4 *)((int)local_11c - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)local_11c - iVar1)" identifier = (cast_expression "(undefined4 *)((int)local_11c - iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_11c - iVar1)" ( (binary_expression "(int)local_11c - iVar1" (cast_expression "(int)local_11c" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (for_statement "for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" for ( (assignment_expression "uVar2 = iVar1 + 0x100U >> 2" identifier = (binary_expression "iVar1 + 0x100U >> 2" (binary_expression "iVar1 + 0x100U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar2 != 0" identifier != number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = *puVar3;" (assignment_expression "*puVar4 = *puVar3" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" else (compound_statement "{\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" { (expression_statement "(**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);" (call_expression "(**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2)" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" ( (pointer_expression "**(code **)(*param_1 + 0x1c)" * (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,local_11c,local_1c,__s2)" ( identifier , identifier , identifier , identifier ))) ;) }))) (expression_statement "*(undefined1 *)(param_1 + 7) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 1" (pointer_expression "*(undefined1 *)(param_1 + 7)" * (cast_expression "(undefined1 *)(param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = memcmp(local_11c,__s2,0x100);" (assignment_expression "iVar1 = memcmp(local_11c,__s2,0x100)" identifier = (call_expression "memcmp(local_11c,__s2,0x100)" identifier (argument_list "(local_11c,__s2,0x100)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 7) = 2;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 7) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 2" (pointer_expression "*(undefined1 *)(param_1 + 7)" * (cast_expression "(undefined1 *)(param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::ctype<char>::_M_widen_init() const */\n\nvoid __thiscall std::ctype<char>::_M_widen_init(ctype<char> *this)\n\n{\n  ctype<char> *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = this + 0x1d;\n  if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c) {\n    *(undefined4 *)(this + 0x1d) = local_11c[0];\n    *(undefined4 *)(this + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);\n  }\n  this[0x1c] = (ctype<char>)0x1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    this[0x1c] = (ctype<char>)0x2;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ctype<char>::_M_widen_init(ctype<char> *this)\n\n{\n  ctype<char> *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = this + 0x1d;\n  if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c) {\n    *(undefined4 *)(this + 0x1d) = local_11c[0];\n    *(undefined4 *)(this + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);\n  }\n  this[0x1c] = (ctype<char>)0x1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    this[0x1c] = (ctype<char>)0x2;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "_M_widen_init(ctype<char> *this)" identifier (parameter_list "(ctype<char> *this)" ( (parameter_declaration "ctype<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ctype<char> *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = this + 0x1d;\n  if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c) {\n    *(undefined4 *)(this + 0x1d) = local_11c[0];\n    *(undefined4 *)(this + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);\n  }\n  this[0x1c] = (ctype<char>)0x1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    this[0x1c] = (ctype<char>)0x2;\n  }\n  return;\n}" { (expression_statement "ctype<char> *__s2;" (binary_expression "ctype<char> *__s2" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*__s2" * identifier)) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_11c [63];" type_identifier (array_declarator "local_11c [63]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined1 local_1c [12];" type_identifier (array_declarator "local_1c [12]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);" do (compound_statement "{\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "*(char *)((int)local_11c + iVar1) = (char)iVar1;" (assignment_expression "*(char *)((int)local_11c + iVar1) = (char)iVar1" (pointer_expression "*(char *)((int)local_11c + iVar1)" * (cast_expression "(char *)((int)local_11c + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_11c + iVar1)" ( (binary_expression "(int)local_11c + iVar1" (cast_expression "(int)local_11c" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x100)" ( (binary_expression "iVar1 != 0x100" identifier != number_literal) )) ;) (expression_statement "__s2 = this + 0x1d;" (assignment_expression "__s2 = this + 0x1d" identifier = (binary_expression "this + 0x1d" identifier + number_literal)) ;) (if_statement "if (*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c) {\n    *(undefined4 *)(this + 0x1d) = local_11c[0];\n    *(undefined4 *)(this + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);\n  }" if (parenthesized_expression "(*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c)" ( (binary_expression "*(code **)(*(int *)this + 0x1c) == (code *)PTR_do_widen_00301f9c" (pointer_expression "*(code **)(*(int *)this + 0x1c)" * (cast_expression "(code **)(*(int *)this + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x1c)" ( (binary_expression "*(int *)this + 0x1c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) == (cast_expression "(code *)PTR_do_widen_00301f9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *(undefined4 *)(this + 0x1d) = local_11c[0];\n    *(undefined4 *)(this + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }" { (expression_statement "*(undefined4 *)(this + 0x1d) = local_11c[0];" (assignment_expression "*(undefined4 *)(this + 0x1d) = local_11c[0]" (pointer_expression "*(undefined4 *)(this + 0x1d)" * (cast_expression "(undefined4 *)(this + 0x1d)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1d)" ( (binary_expression "this + 0x1d" identifier + number_literal) )))) = (subscript_expression "local_11c[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this + 0x119) = local_20;" (assignment_expression "*(undefined4 *)(this + 0x119) = local_20" (pointer_expression "*(undefined4 *)(this + 0x119)" * (cast_expression "(undefined4 *)(this + 0x119)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x119)" ( (binary_expression "this + 0x119" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc);" (assignment_expression "iVar1 = (int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc)" identifier = (binary_expression "(int)__s2 - (int)((uint)(this + 0x21) & 0xfffffffc)" (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)((uint)(this + 0x21) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(this + 0x21) & 0xfffffffc)" ( (binary_expression "(uint)(this + 0x21) & 0xfffffffc" (call_expression "(uint)(this + 0x21)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(this + 0x21)" ( (binary_expression "this + 0x21" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)((int)local_11c - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)local_11c - iVar1)" identifier = (cast_expression "(undefined4 *)((int)local_11c - iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_11c - iVar1)" ( (binary_expression "(int)local_11c - iVar1" (cast_expression "(int)local_11c" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(this + 0x21) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(this + 0x21) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(this + 0x21) & 0xfffffffc)" ( (binary_expression "(uint)(this + 0x21) & 0xfffffffc" (call_expression "(uint)(this + 0x21)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(this + 0x21)" ( (binary_expression "this + 0x21" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" for ( (assignment_expression "uVar2 = iVar1 + 0x100U >> 2" identifier = (binary_expression "iVar1 + 0x100U >> 2" (binary_expression "iVar1 + 0x100U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar2 != 0" identifier != number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = *puVar3;" (assignment_expression "*puVar4 = *puVar3" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);\n  }" else (compound_statement "{\n    (**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);\n  }" { (expression_statement "(**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2);" (call_expression "(**(code **)(*(int *)this + 0x1c))(this,local_11c,local_1c,__s2)" (parenthesized_expression "(**(code **)(*(int *)this + 0x1c))" ( (pointer_expression "**(code **)(*(int *)this + 0x1c)" * (pointer_expression "*(code **)(*(int *)this + 0x1c)" * (cast_expression "(code **)(*(int *)this + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x1c)" ( (binary_expression "*(int *)this + 0x1c" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,local_11c,local_1c,__s2)" ( identifier , identifier , identifier , identifier ))) ;) }))) (expression_statement "this[0x1c] = (ctype<char>)0x1;" (assignment_expression "this[0x1c] = (ctype<char>)0x1" (subscript_expression "this[0x1c]" identifier [ number_literal ]) = (parenthesized_expression "(ctype<char>)0x1" ( (binary_expression "ctype<char>)0x1" (binary_expression "ctype<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) ;) (expression_statement "iVar1 = memcmp(local_11c,__s2,0x100);" (assignment_expression "iVar1 = memcmp(local_11c,__s2,0x100)" identifier = (call_expression "memcmp(local_11c,__s2,0x100)" identifier (argument_list "(local_11c,__s2,0x100)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    this[0x1c] = (ctype<char>)0x2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    this[0x1c] = (ctype<char>)0x2;\n  }" { (expression_statement "this[0x1c] = (ctype<char>)0x2;" (assignment_expression "this[0x1c] = (ctype<char>)0x2" (subscript_expression "this[0x1c]" identifier [ number_literal ]) = (parenthesized_expression "(ctype<char>)0x2" ( (binary_expression "ctype<char>)0x2" (binary_expression "ctype<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001c66b0(int *param_1)\n\n{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_001c66b0(int *param_1)\n\n{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001c66b0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}" { (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_11c [63];" type_identifier (array_declarator "local_11c [63]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined1 local_1c [12];" type_identifier (array_declarator "local_1c [12]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);" do (compound_statement "{\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "*(char *)((int)local_11c + iVar1) = (char)iVar1;" (assignment_expression "*(char *)((int)local_11c + iVar1) = (char)iVar1" (pointer_expression "*(char *)((int)local_11c + iVar1)" * (cast_expression "(char *)((int)local_11c + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_11c + iVar1)" ( (binary_expression "(int)local_11c + iVar1" (cast_expression "(int)local_11c" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x100)" ( (binary_expression "iVar1 != 0x100" identifier != number_literal) )) ;) (expression_statement "__s2 = (void *)((int)param_1 + 0x1d);" (assignment_expression "__s2 = (void *)((int)param_1 + 0x1d)" identifier = (cast_expression "(void *)((int)param_1 + 0x1d)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c)" ( (binary_expression "*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c" (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_FUN_00301f9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }" { (expression_statement "puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((int)param_1 + 0x21U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x21U & 0xfffffffc)" ( (binary_expression "(int)param_1 + 0x21U & 0xfffffffc" (binary_expression "(int)param_1 + 0x21U" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal) )))) ;) (expression_statement "*(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];" (assignment_expression "*(undefined4 *)((int)param_1 + 0x1d) = local_11c[0]" (pointer_expression "*(undefined4 *)((int)param_1 + 0x1d)" * (cast_expression "(undefined4 *)((int)param_1 + 0x1d)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (subscript_expression "local_11c[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)param_1 + 0x119) = local_20;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x119) = local_20" (pointer_expression "*(undefined4 *)((int)param_1 + 0x119)" * (cast_expression "(undefined4 *)((int)param_1 + 0x119)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x119)" ( (binary_expression "(int)param_1 + 0x119" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = (int)__s2 - (int)puVar4;" (assignment_expression "iVar1 = (int)__s2 - (int)puVar4" identifier = (binary_expression "(int)__s2 - (int)puVar4" (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar3 = (undefined4 *)((int)local_11c - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)local_11c - iVar1)" identifier = (cast_expression "(undefined4 *)((int)local_11c - iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_11c - iVar1)" ( (binary_expression "(int)local_11c - iVar1" (cast_expression "(int)local_11c" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) ;) (for_statement "for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" for ( (assignment_expression "uVar2 = iVar1 + 0x100U >> 2" identifier = (binary_expression "iVar1 + 0x100U >> 2" (binary_expression "iVar1 + 0x100U" identifier + number_literal) >> number_literal)) ; (binary_expression "uVar2 != 0" identifier != number_literal) ; (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = *puVar3;" (assignment_expression "*puVar4 = *puVar3" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) }) (else_clause "else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" else (compound_statement "{\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" { (expression_statement "(**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);" (call_expression "(**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2)" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" ( (pointer_expression "**(code **)(*param_1 + 0x1c)" * (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,local_11c,local_1c,__s2)" ( identifier , identifier , identifier , identifier ))) ;) }))) (expression_statement "*(undefined1 *)(param_1 + 7) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 1" (pointer_expression "*(undefined1 *)(param_1 + 7)" * (cast_expression "(undefined1 *)(param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = memcmp(local_11c,__s2,0x100);" (assignment_expression "iVar1 = memcmp(local_11c,__s2,0x100)" identifier = (call_expression "memcmp(local_11c,__s2,0x100)" identifier (argument_list "(local_11c,__s2,0x100)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 7) = 2;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 7) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 2" (pointer_expression "*(undefined1 *)(param_1 + 7)" * (cast_expression "(undefined1 *)(param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) & LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001c66b0(int *param_1)\n\n{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001c66b0(int *param_1)" (identifier "FUN_001c66b0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  void *__s2;\n  int iVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 local_11c [63];\n  undefined4 local_20;\n  undefined1 local_1c [12];\n  \n  iVar1 = 0;\n  do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);\n  __s2 = (void *)((int)param_1 + 0x1d);\n  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }\n  *(undefined1 *)(param_1 + 7) = 1;\n  iVar1 = memcmp(local_11c,__s2,0x100);\n  if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }\n  return;\n}" ({ "{") (declaration "void *__s2;" (primitive_type "void") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 local_11c [63];" (type_identifier "undefined4") (array_declarator "local_11c [63]" (identifier "local_11c") ([ "[") (number_literal "63") (] "]")) (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined1 local_1c [12];" (type_identifier "undefined1") (array_declarator "local_1c [12]" (identifier "local_1c") ([ "[") (number_literal "12") (] "]")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  } while (iVar1 != 0x100);" (do "do") (compound_statement "{\n    *(char *)((int)local_11c + iVar1) = (char)iVar1;\n    iVar1 = iVar1 + 1;\n  }" ({ "{") (expression_statement "*(char *)((int)local_11c + iVar1) = (char)iVar1;" (assignment_expression "*(char *)((int)local_11c + iVar1) = (char)iVar1" (pointer_expression "*(char *)((int)local_11c + iVar1)" (* "*") (cast_expression "(char *)((int)local_11c + iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_11c + iVar1)" (( "(") (binary_expression "(int)local_11c + iVar1" (cast_expression "(int)local_11c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_11c")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1"))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0x100)" (( "(") (binary_expression "iVar1 != 0x100" (identifier "iVar1") (!= "!=") (number_literal "0x100")) () ")")) (; ";")) (expression_statement "__s2 = (void *)((int)param_1 + 0x1d);" (assignment_expression "__s2 = (void *)((int)param_1 + 0x1d)" (identifier "__s2") (= "=") (cast_expression "(void *)((int)param_1 + 0x1d)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1d)" (( "(") (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1d")) () ")")))) (; ";")) (if_statement "if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }\n  else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c)" (( "(") (binary_expression "*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c" (pointer_expression "*(code **)(*param_1 + 0x1c)" (* "*") (cast_expression "(code **)(*param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (cast_expression "(code *)PTR_FUN_00301f9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00301f9c"))) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);\n    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];\n    *(undefined4 *)((int)param_1 + 0x119) = local_20;\n    iVar1 = (int)__s2 - (int)puVar4;\n    puVar3 = (undefined4 *)((int)local_11c - iVar1);\n    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((int)param_1 + 0x21U & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x21U & 0xfffffffc)" (( "(") (binary_expression "(int)param_1 + 0x21U & 0xfffffffc" (binary_expression "(int)param_1 + 0x21U" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x21U")) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];" (assignment_expression "*(undefined4 *)((int)param_1 + 0x1d) = local_11c[0]" (pointer_expression "*(undefined4 *)((int)param_1 + 0x1d)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x1d)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1d)" (( "(") (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1d")) () ")")))) (= "=") (subscript_expression "local_11c[0]" (identifier "local_11c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + 0x119) = local_20;" (assignment_expression "*(undefined4 *)((int)param_1 + 0x119) = local_20" (pointer_expression "*(undefined4 *)((int)param_1 + 0x119)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + 0x119)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x119)" (( "(") (binary_expression "(int)param_1 + 0x119" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x119")) () ")")))) (= "=") (identifier "local_20")) (; ";")) (expression_statement "iVar1 = (int)__s2 - (int)puVar4;" (assignment_expression "iVar1 = (int)__s2 - (int)puVar4" (identifier "iVar1") (= "=") (binary_expression "(int)__s2 - (int)puVar4" (cast_expression "(int)__s2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s2")) (- "-") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)((int)local_11c - iVar1);" (assignment_expression "puVar3 = (undefined4 *)((int)local_11c - iVar1)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)((int)local_11c - iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_11c - iVar1)" (( "(") (binary_expression "(int)local_11c - iVar1" (cast_expression "(int)local_11c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_11c")) (- "-") (identifier "iVar1")) () ")")))) (; ";")) (for_statement "for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar2 = iVar1 + 0x100U >> 2" (identifier "uVar2") (= "=") (binary_expression "iVar1 + 0x100U >> 2" (binary_expression "iVar1 + 0x100U" (identifier "iVar1") (+ "+") (number_literal "0x100U")) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar4 = *puVar3;\n      puVar3 = puVar3 + 1;\n      puVar4 = puVar4 + 1;\n    }" ({ "{") (expression_statement "*puVar4 = *puVar3;" (assignment_expression "*puVar4 = *puVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" (else "else") (compound_statement "{\n    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);\n  }" ({ "{") (expression_statement "(**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);" (call_expression "(**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2)" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x1c)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x1c)" (* "*") (cast_expression "(code **)(*param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(param_1,local_11c,local_1c,__s2)" (( "(") (identifier "param_1") (, ",") (identifier "local_11c") (, ",") (identifier "local_1c") (, ",") (identifier "__s2") () ")"))) (; ";")) (} "}")))) (expression_statement "*(undefined1 *)(param_1 + 7) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 1" (pointer_expression "*(undefined1 *)(param_1 + 7)" (* "*") (cast_expression "(undefined1 *)(param_1 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = memcmp(local_11c,__s2,0x100);" (assignment_expression "iVar1 = memcmp(local_11c,__s2,0x100)" (identifier "iVar1") (= "=") (call_expression "memcmp(local_11c,__s2,0x100)" (identifier "memcmp") (argument_list "(local_11c,__s2,0x100)" (( "(") (identifier "local_11c") (, ",") (identifier "__s2") (, ",") (number_literal "0x100") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    *(undefined1 *)(param_1 + 7) = 2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined1 *)(param_1 + 7) = 2;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 7) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 2" (pointer_expression "*(undefined1 *)(param_1 + 7)" (* "*") (cast_expression "(undefined1 *)(param_1 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::ctype<char>::_M_widen_init() const */

void __thiscall std::type_1<char>::function_1(type_1<char> *var_3)

{
  type_1<var_1> *__s2;
  int var_2;
  type_2 var_4;
  type_3 *var_5;
  type_3 *var_6;
  type_3 local_11c [63];
  type_3 local_20;
  type_4 local_1c [12];
  
  var_2 = 0;
  do {
    *(char *)((int)local_11c + var_2) = (char)var_2;
    var_2 = var_2 + 1;
  } while (var_2 != 0x100);
  __s2 = var_3 + 0x1d;
  if (*(type_5 **)(*(int *)var_3 + 0x1c) == (type_5 *)PTR_do_widen_00301f9c) {
    *(type_3 *)(var_3 + 0x1d) = local_11c[0];
    *(type_3 *)(var_3 + 0x119) = local_20;
    var_2 = (int)__s2 - (int)((type_2)(var_3 + 0x21) & 0xfffffffc);
    var_5 = (type_3 *)((int)local_11c - var_2);
    var_6 = (type_3 *)((type_2)(var_3 + 0x21) & 0xfffffffc);
    for (var_4 = var_2 + 0x100U >> 2; var_4 != 0; var_4 = var_4 - 1) {
      *var_6 = *var_5;
      var_5 = var_5 + 1;
      var_6 = var_6 + 1;
    }
  }
  else {
    (**(type_5 **)(*(int *)var_3 + 0x1c))(var_3,local_11c,local_1c,__s2);
  }
  var_3[0x1c] = (type_1<var_1>)0x1;
  var_2 = var_7(local_11c,__s2,0x100);
  if (var_2 != 0) {
    var_3[0x1c] = (type_1<var_1>)0x2;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int *param_1)

{
  void *__s2;
  int iVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 local_11c [63];
  undefined4 local_20;
  undefined1 local_1c [12];
  
  iVar1 = 0;
  do {
    *(char *)((int)local_11c + iVar1) = (char)iVar1;
    iVar1 = iVar1 + 1;
  } while (iVar1 != 0x100);
  __s2 = (void *)((int)param_1 + 0x1d);
  if (*(code **)(*param_1 + 0x1c) == (code *)PTR_FUN_00301f9c) {
    puVar4 = (undefined4 *)((int)param_1 + 0x21U & 0xfffffffc);
    *(undefined4 *)((int)param_1 + 0x1d) = local_11c[0];
    *(undefined4 *)((int)param_1 + 0x119) = local_20;
    iVar1 = (int)__s2 - (int)puVar4;
    puVar3 = (undefined4 *)((int)local_11c - iVar1);
    for (uVar2 = iVar1 + 0x100U >> 2; uVar2 != 0; uVar2 = uVar2 - 1) {
      *puVar4 = *puVar3;
      puVar3 = puVar3 + 1;
      puVar4 = puVar4 + 1;
    }
  }
  else {
    (**(code **)(*param_1 + 0x1c))(param_1,local_11c,local_1c,__s2);
  }
  *(undefined1 *)(param_1 + 7) = 1;
  iVar1 = memcmp(local_11c,__s2,0x100);
  if (iVar1 != 0) {
    *(undefined1 *)(param_1 + 7) = 2;
  }
  return;
}

