
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::random_device::_M_init_pretr1(std::string const&) */

void __thiscall std::random_device::_M_init_pretr1(random_device *this,string *param_1)

{
  char *__nptr;
  int iVar1;
  uint uVar2;
  char *local_10;
  
  local_10 = (char *)0x1e65d8;
  iVar1 = std::string::compare(param_1,"mt19937");
  uVar2 = 0x1571;
  if (iVar1 != 0) {
    __nptr = *(char **)param_1;
    uVar2 = strtoul(__nptr,&local_10,0);
    if ((*__nptr == '\0') || (*local_10 != '\0')) {
                    /* WARNING: Subroutine does not return */
      __throw_runtime_error("random_device::random_device(const std::string&)");
    }
  }
  *(uint *)this = uVar2;
  iVar1 = 1;
  while( true ) {
    *(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;
    iVar1 = iVar1 + 1;
    if (iVar1 == 0x270) break;
    uVar2 = *(uint *)(this + iVar1 * 4 + -4);
  }
  *(undefined4 *)(this + 0x9c0) = 0x270;
  return;
}



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

void FUN_001e65d0(ulong *param_1,undefined4 *param_2)

{
  char *__nptr;
  int iVar1;
  ulong uVar2;
  char *local_10;
  
  local_10 = (char *)0x1e65d8;
  iVar1 = FUN_001e3c10(param_2,"mt19937");
  uVar2 = 0x1571;
  if (iVar1 != 0) {
    __nptr = (char *)*param_2;
    uVar2 = strtoul(__nptr,&local_10,0);
    if ((*__nptr == '\0') || (*local_10 != '\0')) {
                    /* WARNING: Subroutine does not return */
      FUN_001f1f90("random_device::random_device(const std::string&)");
    }
  }
  *param_1 = uVar2;
  iVar1 = 1;
  while( true ) {
    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;
    if (iVar1 + 1 == 0x270) break;
    uVar2 = param_1[iVar1];
    iVar1 = iVar1 + 1;
  }
  param_1[0x270] = 0x270;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x158a28
SUB ESP,0x18
MOV EDI,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x28]
LEA EAX,[EBX + 0xfff2e389]
PUSH EAX
PUSH EDI
CALL 0x001e3c10
ADD ESP,0x10
MOV ECX,0x1571
TEST EAX,EAX
JNZ 0x001e6642
MOV dword ptr [ESI],ECX
MOV EDX,0x1
JMP 0x001e6614
MOV ECX,dword ptr [ESI + EDX*0x4 + -0x4]
MOV EAX,ECX
SHR EAX,0x1e
XOR EAX,ECX
IMUL EAX,EAX,0x6c078965
ADD EAX,EDX
MOV dword ptr [ESI + EDX*0x4],EAX
ADD EDX,0x1
CMP EDX,0x270
JNZ 0x001e6610
MOV dword ptr [ESI + 0x9c0],0x270
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
MOV EDI,dword ptr [EDI]
PUSH 0x0
LEA EAX,[ESP + 0x14]
PUSH EAX
PUSH EDI
CALL 0x000285e0
ADD ESP,0x10
CMP byte ptr [EDI],0x0
MOV ECX,EAX
JZ 0x001e6667
MOV EAX,dword ptr [ESP + 0xc]
CMP byte ptr [EAX],0x0
JZ 0x001e6602
SUB ESP,0xc
LEA EAX,[EBX + 0xfff2e358]
PUSH EAX
CALL 0x001f1f90
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001e65d0(ulong *param_1,undefined4 *param_2)\n\n{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}\n\n" comment (function_definition "void FUN_001e65d0(ulong *param_1,undefined4 *param_2)\n\n{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}" primitive_type (function_declarator "FUN_001e65d0(ulong *param_1,undefined4 *param_2)" identifier (parameter_list "(ulong *param_1,undefined4 *param_2)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}" { (declaration "char *__nptr;" primitive_type (pointer_declarator "*__nptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (char *)0x1e65d8;" (assignment_expression "local_10 = (char *)0x1e65d8" identifier = (cast_expression "(char *)0x1e65d8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = FUN_001e3c10(param_2,"mt19937");" (assignment_expression "iVar1 = FUN_001e3c10(param_2,"mt19937")" identifier = (call_expression "FUN_001e3c10(param_2,"mt19937")" identifier (argument_list "(param_2,"mt19937")" ( identifier , (string_literal ""mt19937"" " string_content ") )))) ;) (expression_statement "uVar2 = 0x1571;" (assignment_expression "uVar2 = 0x1571" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }" { (expression_statement "__nptr = (char *)*param_2;" (assignment_expression "__nptr = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "uVar2 = strtoul(__nptr,&local_10,0);" (assignment_expression "uVar2 = strtoul(__nptr,&local_10,0)" identifier = (call_expression "strtoul(__nptr,&local_10,0)" identifier (argument_list "(__nptr,&local_10,0)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }" if (parenthesized_expression "((*__nptr == '\0') || (*local_10 != '\0'))" ( (binary_expression "(*__nptr == '\0') || (*local_10 != '\0')" (parenthesized_expression "(*__nptr == '\0')" ( (binary_expression "*__nptr == '\0'" (pointer_expression "*__nptr" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*local_10 != '\0')" ( (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }" { comment (expression_statement "FUN_001f1f90("random_device::random_device(const std::string&)");" (call_expression "FUN_001f1f90("random_device::random_device(const std::string&)")" identifier (argument_list "("random_device::random_device(const std::string&)")" ( (string_literal ""random_device::random_device(const std::string&)"" " string_content ") ))) ;) })) })) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (while_statement "while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;" (assignment_expression "param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (subscript_expression "param_1[iVar1]" identifier [ identifier ]) = (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965" (parenthesized_expression "(uVar2 >> 0x1e ^ uVar2)" ( (binary_expression "uVar2 >> 0x1e ^ uVar2" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) ^ identifier) )) * number_literal) + identifier)) ;) (if_statement "if (iVar1 + 1 == 0x270) break;" if (parenthesized_expression "(iVar1 + 1 == 0x270)" ( (binary_expression "iVar1 + 1 == 0x270" (binary_expression "iVar1 + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = param_1[iVar1];" (assignment_expression "uVar2 = param_1[iVar1]" identifier = (subscript_expression "param_1[iVar1]" identifier [ identifier ])) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[0x270] = 0x270;" (assignment_expression "param_1[0x270] = 0x270" (subscript_expression "param_1[0x270]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::random_device::_M_init_pretr1(std::string const&) */\n\nvoid __thiscall std::random_device::_M_init_pretr1(random_device *this,string *param_1)\n\n{\n  char *__nptr;\n  int iVar1;\n  uint uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = std::string::compare(param_1,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = *(char **)param_1;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }\n  }\n  *(uint *)this = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    *(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    iVar1 = iVar1 + 1;\n    if (iVar1 == 0x270) break;\n    uVar2 = *(uint *)(this + iVar1 * 4 + -4);\n  }\n  *(undefined4 *)(this + 0x9c0) = 0x270;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::random_device::_M_init_pretr1(random_device *this,string *param_1)\n\n{\n  char *__nptr;\n  int iVar1;\n  uint uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = std::string::compare(param_1,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = *(char **)param_1;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }\n  }\n  *(uint *)this = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    *(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    iVar1 = iVar1 + 1;\n    if (iVar1 == 0x270) break;\n    uVar2 = *(uint *)(this + iVar1 * 4 + -4);\n  }\n  *(undefined4 *)(this + 0x9c0) = 0x270;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::random_device::" identifier : : identifier : :) (function_declarator "_M_init_pretr1(random_device *this,string *param_1)" identifier (parameter_list "(random_device *this,string *param_1)" ( (parameter_declaration "random_device *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__nptr;\n  int iVar1;\n  uint uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = std::string::compare(param_1,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = *(char **)param_1;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }\n  }\n  *(uint *)this = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    *(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    iVar1 = iVar1 + 1;\n    if (iVar1 == 0x270) break;\n    uVar2 = *(uint *)(this + iVar1 * 4 + -4);\n  }\n  *(undefined4 *)(this + 0x9c0) = 0x270;\n  return;\n}" { (declaration "char *__nptr;" primitive_type (pointer_declarator "*__nptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (char *)0x1e65d8;" (assignment_expression "local_10 = (char *)0x1e65d8" identifier = (cast_expression "(char *)0x1e65d8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (ERROR "iVar1 = std::" (assignment_expression "iVar1 = std" identifier = identifier) : :) (labeled_statement "string::compare(param_1,"mt19937");" statement_identifier : (ERROR ":" :) (expression_statement "compare(param_1,"mt19937");" (call_expression "compare(param_1,"mt19937")" identifier (argument_list "(param_1,"mt19937")" ( identifier , (string_literal ""mt19937"" " string_content ") ))) ;)) (expression_statement "uVar2 = 0x1571;" (assignment_expression "uVar2 = 0x1571" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n    __nptr = *(char **)param_1;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    __nptr = *(char **)param_1;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }\n  }" { (expression_statement "__nptr = *(char **)param_1;" (assignment_expression "__nptr = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar2 = strtoul(__nptr,&local_10,0);" (assignment_expression "uVar2 = strtoul(__nptr,&local_10,0)" identifier = (call_expression "strtoul(__nptr,&local_10,0)" identifier (argument_list "(__nptr,&local_10,0)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }" if (parenthesized_expression "((*__nptr == '\0') || (*local_10 != '\0'))" ( (binary_expression "(*__nptr == '\0') || (*local_10 != '\0')" (parenthesized_expression "(*__nptr == '\0')" ( (binary_expression "*__nptr == '\0'" (pointer_expression "*__nptr" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*local_10 != '\0')" ( (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __throw_runtime_error("random_device::random_device(const std::string&)");\n    }" { comment (expression_statement "__throw_runtime_error("random_device::random_device(const std::string&)");" (call_expression "__throw_runtime_error("random_device::random_device(const std::string&)")" identifier (argument_list "("random_device::random_device(const std::string&)")" ( (string_literal ""random_device::random_device(const std::string&)"" " string_content ") ))) ;) })) })) (expression_statement "*(uint *)this = uVar2;" (assignment_expression "*(uint *)this = uVar2" (pointer_expression "*(uint *)this" * (cast_expression "(uint *)this" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (while_statement "while( true ) {\n    *(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    iVar1 = iVar1 + 1;\n    if (iVar1 == 0x270) break;\n    uVar2 = *(uint *)(this + iVar1 * 4 + -4);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    iVar1 = iVar1 + 1;\n    if (iVar1 == 0x270) break;\n    uVar2 = *(uint *)(this + iVar1 * 4 + -4);\n  }" { (expression_statement "*(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;" (assignment_expression "*(uint *)(this + iVar1 * 4) = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (pointer_expression "*(uint *)(this + iVar1 * 4)" * (cast_expression "(uint *)(this + iVar1 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1 * 4)" ( (binary_expression "this + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965" (parenthesized_expression "(uVar2 >> 0x1e ^ uVar2)" ( (binary_expression "uVar2 >> 0x1e ^ uVar2" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) ^ identifier) )) * number_literal) + identifier)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 0x270) break;" if (parenthesized_expression "(iVar1 == 0x270)" ( (binary_expression "iVar1 == 0x270" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = *(uint *)(this + iVar1 * 4 + -4);" (assignment_expression "uVar2 = *(uint *)(this + iVar1 * 4 + -4)" identifier = (pointer_expression "*(uint *)(this + iVar1 * 4 + -4)" * (cast_expression "(uint *)(this + iVar1 * 4 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1 * 4 + -4)" ( (binary_expression "this + iVar1 * 4 + -4" (binary_expression "this + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(this + 0x9c0) = 0x270;" (assignment_expression "*(undefined4 *)(this + 0x9c0) = 0x270" (pointer_expression "*(undefined4 *)(this + 0x9c0)" * (cast_expression "(undefined4 *)(this + 0x9c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x9c0)" ( (binary_expression "this + 0x9c0" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001e65d0(ulong *param_1,undefined4 *param_2)\n\n{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}\n\n" (function_definition "void FUN_001e65d0(ulong *param_1,undefined4 *param_2)\n\n{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}" primitive_type (function_declarator "FUN_001e65d0(ulong *param_1,undefined4 *param_2)" identifier (parameter_list "(ulong *param_1,undefined4 *param_2)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}" { (declaration "char *__nptr;" primitive_type (pointer_declarator "*__nptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = (char *)0x1e65d8;" (assignment_expression "local_10 = (char *)0x1e65d8" identifier = (cast_expression "(char *)0x1e65d8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = FUN_001e3c10(param_2,"mt19937");" (assignment_expression "iVar1 = FUN_001e3c10(param_2,"mt19937")" identifier = (call_expression "FUN_001e3c10(param_2,"mt19937")" identifier (argument_list "(param_2,"mt19937")" ( identifier , (string_literal ""mt19937"" " string_content ") )))) ;) (expression_statement "uVar2 = 0x1571;" (assignment_expression "uVar2 = 0x1571" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }" { (expression_statement "__nptr = (char *)*param_2;" (assignment_expression "__nptr = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "uVar2 = strtoul(__nptr,&local_10,0);" (assignment_expression "uVar2 = strtoul(__nptr,&local_10,0)" identifier = (call_expression "strtoul(__nptr,&local_10,0)" identifier (argument_list "(__nptr,&local_10,0)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }" if (parenthesized_expression "((*__nptr == '\0') || (*local_10 != '\0'))" ( (binary_expression "(*__nptr == '\0') || (*local_10 != '\0')" (parenthesized_expression "(*__nptr == '\0')" ( (binary_expression "*__nptr == '\0'" (pointer_expression "*__nptr" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*local_10 != '\0')" ( (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }" { (expression_statement "FUN_001f1f90("random_device::random_device(const std::string&)");" (call_expression "FUN_001f1f90("random_device::random_device(const std::string&)")" identifier (argument_list "("random_device::random_device(const std::string&)")" ( (string_literal ""random_device::random_device(const std::string&)"" " string_content ") ))) ;) })) })) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (while_statement "while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }" { (expression_statement "param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;" (assignment_expression "param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (subscript_expression "param_1[iVar1]" identifier [ identifier ]) = (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965" (parenthesized_expression "(uVar2 >> 0x1e ^ uVar2)" ( (binary_expression "uVar2 >> 0x1e ^ uVar2" (binary_expression "uVar2 >> 0x1e" identifier >> number_literal) ^ identifier) )) * number_literal) + identifier)) ;) (if_statement "if (iVar1 + 1 == 0x270) break;" if (parenthesized_expression "(iVar1 + 1 == 0x270)" ( (binary_expression "iVar1 + 1 == 0x270" (binary_expression "iVar1 + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = param_1[iVar1];" (assignment_expression "uVar2 = param_1[iVar1]" identifier = (subscript_expression "param_1[iVar1]" identifier [ identifier ])) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[0x270] = 0x270;" (assignment_expression "param_1[0x270] = 0x270" (subscript_expression "param_1[0x270]" 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)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) ^ IDENT) )) * LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001e65d0(ulong *param_1,undefined4 *param_2)\n\n{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001e65d0(ulong *param_1,undefined4 *param_2)" (identifier "FUN_001e65d0") (parameter_list "(ulong *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "ulong *param_1" (type_identifier "ulong") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *__nptr;\n  int iVar1;\n  ulong uVar2;\n  char *local_10;\n  \n  local_10 = (char *)0x1e65d8;\n  iVar1 = FUN_001e3c10(param_2,"mt19937");\n  uVar2 = 0x1571;\n  if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }\n  *param_1 = uVar2;\n  iVar1 = 1;\n  while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }\n  param_1[0x270] = 0x270;\n  return;\n}" ({ "{") (declaration "char *__nptr;" (primitive_type "char") (pointer_declarator "*__nptr" (* "*") (identifier "__nptr")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "char *local_10;" (primitive_type "char") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (expression_statement "local_10 = (char *)0x1e65d8;" (assignment_expression "local_10 = (char *)0x1e65d8" (identifier "local_10") (= "=") (cast_expression "(char *)0x1e65d8" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1e65d8"))) (; ";")) (expression_statement "iVar1 = FUN_001e3c10(param_2,"mt19937");" (assignment_expression "iVar1 = FUN_001e3c10(param_2,"mt19937")" (identifier "iVar1") (= "=") (call_expression "FUN_001e3c10(param_2,"mt19937")" (identifier "FUN_001e3c10") (argument_list "(param_2,"mt19937")" (( "(") (identifier "param_2") (, ",") (string_literal ""mt19937"" (" """) (string_content "mt19937") (" """)) () ")")))) (; ";")) (expression_statement "uVar2 = 0x1571;" (assignment_expression "uVar2 = 0x1571" (identifier "uVar2") (= "=") (number_literal "0x1571")) (; ";")) (if_statement "if (iVar1 != 0) {\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    __nptr = (char *)*param_2;\n    uVar2 = strtoul(__nptr,&local_10,0);\n    if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }\n  }" ({ "{") (expression_statement "__nptr = (char *)*param_2;" (assignment_expression "__nptr = (char *)*param_2" (identifier "__nptr") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "uVar2 = strtoul(__nptr,&local_10,0);" (assignment_expression "uVar2 = strtoul(__nptr,&local_10,0)" (identifier "uVar2") (= "=") (call_expression "strtoul(__nptr,&local_10,0)" (identifier "strtoul") (argument_list "(__nptr,&local_10,0)" (( "(") (identifier "__nptr") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((*__nptr == '\0') || (*local_10 != '\0')) {\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }" (if "if") (parenthesized_expression "((*__nptr == '\0') || (*local_10 != '\0'))" (( "(") (binary_expression "(*__nptr == '\0') || (*local_10 != '\0')" (parenthesized_expression "(*__nptr == '\0')" (( "(") (binary_expression "*__nptr == '\0'" (pointer_expression "*__nptr" (* "*") (identifier "__nptr")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*local_10 != '\0')" (( "(") (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" (* "*") (identifier "local_10")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n                    \n      FUN_001f1f90("random_device::random_device(const std::string&)");\n    }" ({ "{") (expression_statement "FUN_001f1f90("random_device::random_device(const std::string&)");" (call_expression "FUN_001f1f90("random_device::random_device(const std::string&)")" (identifier "FUN_001f1f90") (argument_list "("random_device::random_device(const std::string&)")" (( "(") (string_literal ""random_device::random_device(const std::string&)"" (" """) (string_content "random_device::random_device(const std::string&)") (" """)) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (while_statement "while( true ) {\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;\n    if (iVar1 + 1 == 0x270) break;\n    uVar2 = param_1[iVar1];\n    iVar1 = iVar1 + 1;\n  }" ({ "{") (expression_statement "param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;" (assignment_expression "param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (subscript_expression "param_1[iVar1]" (identifier "param_1") ([ "[") (identifier "iVar1") (] "]")) (= "=") (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1" (binary_expression "(uVar2 >> 0x1e ^ uVar2) * 0x6c078965" (parenthesized_expression "(uVar2 >> 0x1e ^ uVar2)" (( "(") (binary_expression "uVar2 >> 0x1e ^ uVar2" (binary_expression "uVar2 >> 0x1e" (identifier "uVar2") (>> ">>") (number_literal "0x1e")) (^ "^") (identifier "uVar2")) () ")")) (* "*") (number_literal "0x6c078965")) (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (iVar1 + 1 == 0x270) break;" (if "if") (parenthesized_expression "(iVar1 + 1 == 0x270)" (( "(") (binary_expression "iVar1 + 1 == 0x270" (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) (== "==") (number_literal "0x270")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = param_1[iVar1];" (assignment_expression "uVar2 = param_1[iVar1]" (identifier "uVar2") (= "=") (subscript_expression "param_1[iVar1]" (identifier "param_1") ([ "[") (identifier "iVar1") (] "]"))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1[0x270] = 0x270;" (assignment_expression "param_1[0x270] = 0x270" (subscript_expression "param_1[0x270]" (identifier "param_1") ([ "[") (number_literal "0x270") (] "]")) (= "=") (number_literal "0x270")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::random_device::_M_init_pretr1(std::string const&) */

void __thiscall std::type_1::function_1(type_1 *var_5,type_2 *param_1)

{
  char *__nptr;
  int var_2;
  type_3 var_6;
  char *local_10;
  
  local_10 = (char *)0x1e65d8;
  var_2 = std::string::var_1(param_1,"mt19937");
  var_6 = 0x1571;
  if (var_2 != 0) {
    __nptr = *(char **)param_1;
    var_6 = var_3(__nptr,&local_10,0);
    if ((*__nptr == '\0') || (*local_10 != '\0')) {
                    /* WARNING: Subroutine does not return */
      var_4("random_device::random_device(const std::string&)");
    }
  }
  *(type_3 *)var_5 = var_6;
  var_2 = 1;
  while( true ) {
    *(type_3 *)(var_5 + var_2 * 4) = (var_6 >> 0x1e ^ var_6) * 0x6c078965 + var_2;
    var_2 = var_2 + 1;
    if (var_2 == 0x270) break;
    var_6 = *(type_3 *)(var_5 + var_2 * 4 + -4);
  }
  *(type_4 *)(var_5 + 0x9c0) = 0x270;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

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

void MASKED(ulong *param_1,undefined4 *param_2)

{
  char *__nptr;
  int iVar1;
  ulong uVar2;
  char *local_10;
  
  local_10 = (char *)0x1e65d8;
  iVar1 = FUN_001e3c10(param_2,"mt19937");
  uVar2 = 0x1571;
  if (iVar1 != 0) {
    __nptr = (char *)*param_2;
    uVar2 = strtoul(__nptr,&local_10,0);
    if ((*__nptr == '\0') || (*local_10 != '\0')) {
                    /* WARNING: Subroutine does not return */
      FUN_001f1f90("random_device::random_device(const std::string&)");
    }
  }
  *param_1 = uVar2;
  iVar1 = 1;
  while( true ) {
    param_1[iVar1] = (uVar2 >> 0x1e ^ uVar2) * 0x6c078965 + iVar1;
    if (iVar1 + 1 == 0x270) break;
    uVar2 = param_1[iVar1];
    iVar1 = iVar1 + 1;
  }
  param_1[0x270] = 0x270;
  return;
}

