
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void random_ref(void)

{
  int iVar1;
  RandPool *pRVar2;
  
  if (random_active != 0) {
    random_active = random_active + 1;
    return;
  }
  pRVar2 = &pool;
  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {
    pRVar2->pool[0] = '\0';
    pRVar2->pool[1] = '\0';
    pRVar2->pool[2] = '\0';
    pRVar2->pool[3] = '\0';
    pRVar2 = (RandPool *)(pRVar2->pool + 4);
  }
  noise_get_heavy(random_add_heavynoise_bitbybit);
  if (pool.stir_pending == 0) {
    random_stir();
  }
  next_noise_collection = schedule_timer(300000,random_timer,&pool);
  random_active = random_active + 1;
  return;
}



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

void FUN_00057b40(void)

{
  int iVar1;
  undefined4 *puVar2;
  
  if (DAT_000a93a0 != 0) {
    DAT_000a93a0 = DAT_000a93a0 + 1;
    return;
  }
  puVar2 = &DAT_000a93c0;
  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar2 = 0;
    puVar2 = puVar2 + 1;
  }
  FUN_000686b0(FUN_00057800);
  if (DAT_000a98cc == 0) {
    FUN_00057500();
  }
  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);
  DAT_000a93a0 = DAT_000a93a0 + 1;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x51228
MOV EAX,dword ptr [EBX + 0x630]
TEST EAX,EAX
JZ 0x00057b68
ADD EAX,0x1
MOV dword ptr [EBX + 0x630],EAX
POP EBX
POP ESI
POP EDI
RET
LEA ESI,[EBX + 0x650]
MOV ECX,0x144
SUB ESP,0xc
MOV EDI,ESI
STOSD.REP ES:EDI
LEA EAX,[EBX + 0xfffaea90]
PUSH EAX
CALL 0x000686b0
MOV EAX,dword ptr [EBX + 0xb5c]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00057bd0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffaecd0]
PUSH ESI
PUSH EAX
PUSH 0x493e0
CALL 0x00062940
LEA EDX,[EBX + 0xbfc]
ADD ESP,0x10
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [EBX + 0x630]
ADD EAX,0x1
MOV dword ptr [EBX + 0x630],EAX
POP EBX
POP ESI
POP EDI
RET
CALL 0x00057500
JMP 0x00057b93
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00057b40(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}\n\n" comment (function_definition "void FUN_00057b40(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00057b40(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }" if (parenthesized_expression "(DAT_000a93a0 != 0)" ( (binary_expression "DAT_000a93a0 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }" { (expression_statement "DAT_000a93a0 = DAT_000a93a0 + 1;" (assignment_expression "DAT_000a93a0 = DAT_000a93a0 + 1" identifier = (binary_expression "DAT_000a93a0 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = &DAT_000a93c0;" (assignment_expression "puVar2 = &DAT_000a93c0" identifier = (pointer_expression "&DAT_000a93c0" & identifier)) ;) (for_statement "for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x144" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "FUN_000686b0(FUN_00057800);" (call_expression "FUN_000686b0(FUN_00057800)" identifier (argument_list "(FUN_00057800)" ( identifier ))) ;) (if_statement "if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }" if (parenthesized_expression "(DAT_000a98cc == 0)" ( (binary_expression "DAT_000a98cc == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00057500();\n  }" { (expression_statement "FUN_00057500();" (call_expression "FUN_00057500()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);" (assignment_expression "DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0)" identifier = (call_expression "FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0)" identifier (argument_list "(300000,FUN_00057a40,&DAT_000a93c0)" ( number_literal , identifier , (pointer_expression "&DAT_000a93c0" & identifier) )))) ;) (expression_statement "DAT_000a93a0 = DAT_000a93a0 + 1;" (assignment_expression "DAT_000a93a0 = DAT_000a93a0 + 1" identifier = (binary_expression "DAT_000a93a0 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid random_ref(void)\n\n{\n  int iVar1;\n  RandPool *pRVar2;\n  \n  if (random_active != 0) {\n    random_active = random_active + 1;\n    return;\n  }\n  pRVar2 = &pool;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    pRVar2->pool[0] = '\0';\n    pRVar2->pool[1] = '\0';\n    pRVar2->pool[2] = '\0';\n    pRVar2->pool[3] = '\0';\n    pRVar2 = (RandPool *)(pRVar2->pool + 4);\n  }\n  noise_get_heavy(random_add_heavynoise_bitbybit);\n  if (pool.stir_pending == 0) {\n    random_stir();\n  }\n  next_noise_collection = schedule_timer(300000,random_timer,&pool);\n  random_active = random_active + 1;\n  return;\n}\n\n" comment comment (function_definition "void random_ref(void)\n\n{\n  int iVar1;\n  RandPool *pRVar2;\n  \n  if (random_active != 0) {\n    random_active = random_active + 1;\n    return;\n  }\n  pRVar2 = &pool;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    pRVar2->pool[0] = '\0';\n    pRVar2->pool[1] = '\0';\n    pRVar2->pool[2] = '\0';\n    pRVar2->pool[3] = '\0';\n    pRVar2 = (RandPool *)(pRVar2->pool + 4);\n  }\n  noise_get_heavy(random_add_heavynoise_bitbybit);\n  if (pool.stir_pending == 0) {\n    random_stir();\n  }\n  next_noise_collection = schedule_timer(300000,random_timer,&pool);\n  random_active = random_active + 1;\n  return;\n}" primitive_type (function_declarator "random_ref(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  RandPool *pRVar2;\n  \n  if (random_active != 0) {\n    random_active = random_active + 1;\n    return;\n  }\n  pRVar2 = &pool;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    pRVar2->pool[0] = '\0';\n    pRVar2->pool[1] = '\0';\n    pRVar2->pool[2] = '\0';\n    pRVar2->pool[3] = '\0';\n    pRVar2 = (RandPool *)(pRVar2->pool + 4);\n  }\n  noise_get_heavy(random_add_heavynoise_bitbybit);\n  if (pool.stir_pending == 0) {\n    random_stir();\n  }\n  next_noise_collection = schedule_timer(300000,random_timer,&pool);\n  random_active = random_active + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "RandPool *pRVar2;" type_identifier (pointer_declarator "*pRVar2" * identifier) ;) (if_statement "if (random_active != 0) {\n    random_active = random_active + 1;\n    return;\n  }" if (parenthesized_expression "(random_active != 0)" ( (binary_expression "random_active != 0" identifier != number_literal) )) (compound_statement "{\n    random_active = random_active + 1;\n    return;\n  }" { (expression_statement "random_active = random_active + 1;" (assignment_expression "random_active = random_active + 1" identifier = (binary_expression "random_active + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pRVar2 = &pool;" (assignment_expression "pRVar2 = &pool" identifier = (pointer_expression "&pool" & identifier)) ;) (for_statement "for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    pRVar2->pool[0] = '\0';\n    pRVar2->pool[1] = '\0';\n    pRVar2->pool[2] = '\0';\n    pRVar2->pool[3] = '\0';\n    pRVar2 = (RandPool *)(pRVar2->pool + 4);\n  }" for ( (assignment_expression "iVar1 = 0x144" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    pRVar2->pool[0] = '\0';\n    pRVar2->pool[1] = '\0';\n    pRVar2->pool[2] = '\0';\n    pRVar2->pool[3] = '\0';\n    pRVar2 = (RandPool *)(pRVar2->pool + 4);\n  }" { (expression_statement "pRVar2->pool[0] = '\0';" (assignment_expression "pRVar2->pool[0] = '\0'" (subscript_expression "pRVar2->pool[0]" (field_expression "pRVar2->pool" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pRVar2->pool[1] = '\0';" (assignment_expression "pRVar2->pool[1] = '\0'" (subscript_expression "pRVar2->pool[1]" (field_expression "pRVar2->pool" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pRVar2->pool[2] = '\0';" (assignment_expression "pRVar2->pool[2] = '\0'" (subscript_expression "pRVar2->pool[2]" (field_expression "pRVar2->pool" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pRVar2->pool[3] = '\0';" (assignment_expression "pRVar2->pool[3] = '\0'" (subscript_expression "pRVar2->pool[3]" (field_expression "pRVar2->pool" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pRVar2 = (RandPool *)(pRVar2->pool + 4);" (assignment_expression "pRVar2 = (RandPool *)(pRVar2->pool + 4)" identifier = (cast_expression "(RandPool *)(pRVar2->pool + 4)" ( (type_descriptor "RandPool *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pRVar2->pool + 4)" ( (binary_expression "pRVar2->pool + 4" (field_expression "pRVar2->pool" identifier -> field_identifier) + number_literal) )))) ;) })) (expression_statement "noise_get_heavy(random_add_heavynoise_bitbybit);" (call_expression "noise_get_heavy(random_add_heavynoise_bitbybit)" identifier (argument_list "(random_add_heavynoise_bitbybit)" ( identifier ))) ;) (if_statement "if (pool.stir_pending == 0) {\n    random_stir();\n  }" if (parenthesized_expression "(pool.stir_pending == 0)" ( (binary_expression "pool.stir_pending == 0" (field_expression "pool.stir_pending" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    random_stir();\n  }" { (expression_statement "random_stir();" (call_expression "random_stir()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "next_noise_collection = schedule_timer(300000,random_timer,&pool);" (assignment_expression "next_noise_collection = schedule_timer(300000,random_timer,&pool)" identifier = (call_expression "schedule_timer(300000,random_timer,&pool)" identifier (argument_list "(300000,random_timer,&pool)" ( number_literal , identifier , (pointer_expression "&pool" & identifier) )))) ;) (expression_statement "random_active = random_active + 1;" (assignment_expression "random_active = random_active + 1" identifier = (binary_expression "random_active + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00057b40(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}\n\n" (function_definition "void FUN_00057b40(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00057b40(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }" if (parenthesized_expression "(DAT_000a93a0 != 0)" ( (binary_expression "DAT_000a93a0 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }" { (expression_statement "DAT_000a93a0 = DAT_000a93a0 + 1;" (assignment_expression "DAT_000a93a0 = DAT_000a93a0 + 1" identifier = (binary_expression "DAT_000a93a0 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = &DAT_000a93c0;" (assignment_expression "puVar2 = &DAT_000a93c0" identifier = (pointer_expression "&DAT_000a93c0" & identifier)) ;) (for_statement "for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x144" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "FUN_000686b0(FUN_00057800);" (call_expression "FUN_000686b0(FUN_00057800)" identifier (argument_list "(FUN_00057800)" ( identifier ))) ;) (if_statement "if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }" if (parenthesized_expression "(DAT_000a98cc == 0)" ( (binary_expression "DAT_000a98cc == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00057500();\n  }" { (expression_statement "FUN_00057500();" (call_expression "FUN_00057500()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);" (assignment_expression "DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0)" identifier = (call_expression "FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0)" identifier (argument_list "(300000,FUN_00057a40,&DAT_000a93c0)" ( number_literal , identifier , (pointer_expression "&DAT_000a93c0" & identifier) )))) ;) (expression_statement "DAT_000a93a0 = DAT_000a93a0 + 1;" (assignment_expression "DAT_000a93a0 = DAT_000a93a0 + 1" identifier = (binary_expression "DAT_000a93a0 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00057b40(void)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00057b40(void)" (identifier "FUN_00057b40") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }\n  puVar2 = &DAT_000a93c0;\n  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }\n  FUN_000686b0(FUN_00057800);\n  if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }\n  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);\n  DAT_000a93a0 = DAT_000a93a0 + 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (DAT_000a93a0 != 0) {\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_000a93a0 != 0)" (( "(") (binary_expression "DAT_000a93a0 != 0" (identifier "DAT_000a93a0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_000a93a0 = DAT_000a93a0 + 1;\n    return;\n  }" ({ "{") (expression_statement "DAT_000a93a0 = DAT_000a93a0 + 1;" (assignment_expression "DAT_000a93a0 = DAT_000a93a0 + 1" (identifier "DAT_000a93a0") (= "=") (binary_expression "DAT_000a93a0 + 1" (identifier "DAT_000a93a0") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = &DAT_000a93c0;" (assignment_expression "puVar2 = &DAT_000a93c0" (identifier "puVar2") (= "=") (pointer_expression "&DAT_000a93c0" (& "&") (identifier "DAT_000a93c0"))) (; ";")) (for_statement "for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar1 = 0x144" (identifier "iVar1") (= "=") (number_literal "0x144")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar2 = 0;\n    puVar2 = puVar2 + 1;\n  }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "FUN_000686b0(FUN_00057800);" (call_expression "FUN_000686b0(FUN_00057800)" (identifier "FUN_000686b0") (argument_list "(FUN_00057800)" (( "(") (identifier "FUN_00057800") () ")"))) (; ";")) (if_statement "if (DAT_000a98cc == 0) {\n    FUN_00057500();\n  }" (if "if") (parenthesized_expression "(DAT_000a98cc == 0)" (( "(") (binary_expression "DAT_000a98cc == 0" (identifier "DAT_000a98cc") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00057500();\n  }" ({ "{") (expression_statement "FUN_00057500();" (call_expression "FUN_00057500()" (identifier "FUN_00057500") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);" (assignment_expression "DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0)" (identifier "DAT_000a996c") (= "=") (call_expression "FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0)" (identifier "FUN_00062940") (argument_list "(300000,FUN_00057a40,&DAT_000a93c0)" (( "(") (number_literal "300000") (, ",") (identifier "FUN_00057a40") (, ",") (pointer_expression "&DAT_000a93c0" (& "&") (identifier "DAT_000a93c0")) () ")")))) (; ";")) (expression_statement "DAT_000a93a0 = DAT_000a93a0 + 1;" (assignment_expression "DAT_000a93a0 = DAT_000a93a0 + 1" (identifier "DAT_000a93a0") (= "=") (binary_expression "DAT_000a93a0 + 1" (identifier "DAT_000a93a0") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_2;
  type_1 *pRVar2;
  
  if (var_1 != 0) {
    var_1 = var_1 + 1;
    return;
  }
  pRVar2 = &pool;
  for (var_2 = 0x144; var_2 != 0; var_2 = var_2 + -1) {
    pRVar2->pool[0] = '\0';
    pRVar2->pool[1] = '\0';
    pRVar2->pool[2] = '\0';
    pRVar2->pool[3] = '\0';
    pRVar2 = (type_1 *)(pRVar2->pool + 4);
  }
  var_3(random_add_heavynoise_bitbybit);
  if (pool.stir_pending == 0) {
    var_4();
  }
  next_noise_collection = var_5(300000,random_timer,&pool);
  var_1 = var_1 + 1;
  return;
}


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

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

void MASKED(void)

{
  int iVar1;
  undefined4 *puVar2;
  
  if (DAT_000a93a0 != 0) {
    DAT_000a93a0 = DAT_000a93a0 + 1;
    return;
  }
  puVar2 = &DAT_000a93c0;
  for (iVar1 = 0x144; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar2 = 0;
    puVar2 = puVar2 + 1;
  }
  FUN_000686b0(FUN_00057800);
  if (DAT_000a98cc == 0) {
    FUN_00057500();
  }
  DAT_000a996c = FUN_00062940(300000,FUN_00057a40,&DAT_000a93c0);
  DAT_000a93a0 = DAT_000a93a0 + 1;
  return;
}

