
/* 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_unref(void)

{
  if (random_active < 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");
  }
  if (random_active != 1) {
    random_active = random_active + -1;
    return;
  }
  random_save_seed();
  expire_timer_context(&pool);
  random_active = random_active + -1;
  return;
}



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

void FUN_00053690(void)

{
  if (DAT_000a54a0 < 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");
  }
  if (DAT_000a54a0 != 1) {
    DAT_000a54a0 = DAT_000a54a0 + -1;
    return;
  }
  FUN_00066140();
  FUN_00060300(&DAT_000a54c0);
  DAT_000a54a0 = DAT_000a54a0 + -1;
  return;
}


PUSH EBX
CALL 0x00015fa0
ADD EBX,0x516da
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x730]
TEST EAX,EAX
JLE 0x000536eb
CMP EAX,0x1
JZ 0x000536c0
SUB EAX,0x1
MOV dword ptr [EBX + 0x730],EAX
ADD ESP,0x8
POP EBX
RET
CALL 0x00066140
LEA EAX,[EBX + 0x750]
SUB ESP,0xc
PUSH EAX
CALL 0x00060300
MOV EAX,dword ptr [EBX + 0x730]
ADD ESP,0x10
SUB EAX,0x1
MOV dword ptr [EBX + 0x730],EAX
ADD ESP,0x8
POP EBX
RET
LEA EAX,[EBX + 0xfffd5abc]
PUSH EAX
LEA EAX,[EBX + 0xfffd5a86]
PUSH 0x140
PUSH EAX
LEA EAX,[EBX + 0xfffd5a90]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00053690(void)\n\n{\n  if (DAT_000a54a0 < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}\n\n" comment (function_definition "void FUN_00053690(void)\n\n{\n  if (DAT_000a54a0 < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}" primitive_type (function_declarator "FUN_00053690(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_000a54a0 < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}" { (if_statement "if (DAT_000a54a0 < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" if (parenthesized_expression "(DAT_000a54a0 < 1)" ( (binary_expression "DAT_000a54a0 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" { comment (expression_statement "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");" (call_expression "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref")" identifier (argument_list "("random_active > 0","sshrand.c",0x140,"random_unref")" ( (string_literal ""random_active > 0"" " string_content ") , (string_literal ""sshrand.c"" " string_content ") , number_literal , (string_literal ""random_unref"" " string_content ") ))) ;) })) (if_statement "if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }" if (parenthesized_expression "(DAT_000a54a0 != 1)" ( (binary_expression "DAT_000a54a0 != 1" identifier != number_literal) )) (compound_statement "{\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }" { (expression_statement "DAT_000a54a0 = DAT_000a54a0 + -1;" (assignment_expression "DAT_000a54a0 = DAT_000a54a0 + -1" identifier = (binary_expression "DAT_000a54a0 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00066140();" (call_expression "FUN_00066140()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00060300(&DAT_000a54c0);" (call_expression "FUN_00060300(&DAT_000a54c0)" identifier (argument_list "(&DAT_000a54c0)" ( (pointer_expression "&DAT_000a54c0" & identifier) ))) ;) (expression_statement "DAT_000a54a0 = DAT_000a54a0 + -1;" (assignment_expression "DAT_000a54a0 = DAT_000a54a0 + -1" identifier = (binary_expression "DAT_000a54a0 + -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_unref(void)\n\n{\n  if (random_active < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (random_active != 1) {\n    random_active = random_active + -1;\n    return;\n  }\n  random_save_seed();\n  expire_timer_context(&pool);\n  random_active = random_active + -1;\n  return;\n}\n\n" comment comment (function_definition "void random_unref(void)\n\n{\n  if (random_active < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (random_active != 1) {\n    random_active = random_active + -1;\n    return;\n  }\n  random_save_seed();\n  expire_timer_context(&pool);\n  random_active = random_active + -1;\n  return;\n}" primitive_type (function_declarator "random_unref(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (random_active < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (random_active != 1) {\n    random_active = random_active + -1;\n    return;\n  }\n  random_save_seed();\n  expire_timer_context(&pool);\n  random_active = random_active + -1;\n  return;\n}" { (if_statement "if (random_active < 1) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" if (parenthesized_expression "(random_active < 1)" ( (binary_expression "random_active < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" { comment (expression_statement "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");" (call_expression "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref")" identifier (argument_list "("random_active > 0","sshrand.c",0x140,"random_unref")" ( (string_literal ""random_active > 0"" " string_content ") , (string_literal ""sshrand.c"" " string_content ") , number_literal , (string_literal ""random_unref"" " string_content ") ))) ;) })) (if_statement "if (random_active != 1) {\n    random_active = random_active + -1;\n    return;\n  }" if (parenthesized_expression "(random_active != 1)" ( (binary_expression "random_active != 1" 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 "random_save_seed();" (call_expression "random_save_seed()" identifier (argument_list "()" ( ))) ;) (expression_statement "expire_timer_context(&pool);" (call_expression "expire_timer_context(&pool)" identifier (argument_list "(&pool)" ( (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_00053690(void)\n\n{\n  if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}\n\n" (function_definition "void FUN_00053690(void)\n\n{\n  if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}" primitive_type (function_declarator "FUN_00053690(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}" { (if_statement "if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" if (parenthesized_expression "(DAT_000a54a0 < 1)" ( (binary_expression "DAT_000a54a0 < 1" identifier < number_literal) )) (compound_statement "{\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" { (expression_statement "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");" (call_expression "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref")" identifier (argument_list "("random_active > 0","sshrand.c",0x140,"random_unref")" ( (string_literal ""random_active > 0"" " string_content ") , (string_literal ""sshrand.c"" " string_content ") , number_literal , (string_literal ""random_unref"" " string_content ") ))) ;) })) (if_statement "if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }" if (parenthesized_expression "(DAT_000a54a0 != 1)" ( (binary_expression "DAT_000a54a0 != 1" identifier != number_literal) )) (compound_statement "{\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }" { (expression_statement "DAT_000a54a0 = DAT_000a54a0 + -1;" (assignment_expression "DAT_000a54a0 = DAT_000a54a0 + -1" identifier = (binary_expression "DAT_000a54a0 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00066140();" (call_expression "FUN_00066140()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00060300(&DAT_000a54c0);" (call_expression "FUN_00060300(&DAT_000a54c0)" identifier (argument_list "(&DAT_000a54c0)" ( (pointer_expression "&DAT_000a54c0" & identifier) ))) ;) (expression_statement "DAT_000a54a0 = DAT_000a54a0 + -1;" (assignment_expression "DAT_000a54a0 = DAT_000a54a0 + -1" identifier = (binary_expression "DAT_000a54a0 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00053690(void)\n\n{\n  if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00053690(void)" (identifier "FUN_00053690") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }\n  if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }\n  FUN_00066140();\n  FUN_00060300(&DAT_000a54c0);\n  DAT_000a54a0 = DAT_000a54a0 + -1;\n  return;\n}" ({ "{") (if_statement "if (DAT_000a54a0 < 1) {\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" (if "if") (parenthesized_expression "(DAT_000a54a0 < 1)" (( "(") (binary_expression "DAT_000a54a0 < 1" (identifier "DAT_000a54a0") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");\n  }" ({ "{") (expression_statement "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");" (call_expression "__assert_fail("random_active > 0","sshrand.c",0x140,"random_unref")" (identifier "__assert_fail") (argument_list "("random_active > 0","sshrand.c",0x140,"random_unref")" (( "(") (string_literal ""random_active > 0"" (" """) (string_content "random_active > 0") (" """)) (, ",") (string_literal ""sshrand.c"" (" """) (string_content "sshrand.c") (" """)) (, ",") (number_literal "0x140") (, ",") (string_literal ""random_unref"" (" """) (string_content "random_unref") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_000a54a0 != 1) {\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_000a54a0 != 1)" (( "(") (binary_expression "DAT_000a54a0 != 1" (identifier "DAT_000a54a0") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    DAT_000a54a0 = DAT_000a54a0 + -1;\n    return;\n  }" ({ "{") (expression_statement "DAT_000a54a0 = DAT_000a54a0 + -1;" (assignment_expression "DAT_000a54a0 = DAT_000a54a0 + -1" (identifier "DAT_000a54a0") (= "=") (binary_expression "DAT_000a54a0 + -1" (identifier "DAT_000a54a0") (+ "+") (number_literal "-1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00066140();" (call_expression "FUN_00066140()" (identifier "FUN_00066140") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00060300(&DAT_000a54c0);" (call_expression "FUN_00060300(&DAT_000a54c0)" (identifier "FUN_00060300") (argument_list "(&DAT_000a54c0)" (( "(") (pointer_expression "&DAT_000a54c0" (& "&") (identifier "DAT_000a54c0")) () ")"))) (; ";")) (expression_statement "DAT_000a54a0 = DAT_000a54a0 + -1;" (assignment_expression "DAT_000a54a0 = DAT_000a54a0 + -1" (identifier "DAT_000a54a0") (= "=") (binary_expression "DAT_000a54a0 + -1" (identifier "DAT_000a54a0") (+ "+") (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)

{
  if (var_1 < 1) {
                    /* WARNING: Subroutine does not return */
    var_2("random_active > 0","sshrand.c",0x140,"random_unref");
  }
  if (var_1 != 1) {
    var_1 = var_1 + -1;
    return;
  }
  var_3();
  var_4(&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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (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 (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)

{
  if (DAT_000a54a0 < 1) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("random_active > 0","sshrand.c",0x140,"random_unref");
  }
  if (DAT_000a54a0 != 1) {
    DAT_000a54a0 = DAT_000a54a0 + -1;
    return;
  }
  FUN_00066140();
  FUN_00060300(&DAT_000a54c0);
  DAT_000a54a0 = DAT_000a54a0 + -1;
  return;
}

