
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void expire_timer_context(void *ctx)

{
  if (timers == (tree234 *)0x0) {
    timers = newtree234(compare_timers);
    timer_contexts = newtree234(compare_timer_contexts);
    now = getticks();
  }
  del234(timer_contexts,ctx);
  return;
}



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

void FUN_0004a510(undefined4 param_1)

{
  if (DAT_0008522c == 0) {
    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);
    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);
    DAT_00085224 = FUN_000519e0();
  }
  FUN_0004f330(DAT_00085228,param_1);
  return;
}


PUSH EBX
CALL 0x00015340
ADD EBX,0x3a7d2
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x544]
TEST EAX,EAX
JZ 0x0004a540
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [EBX + 0x540]
CALL 0x0004f330
ADD ESP,0x18
POP EBX
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffc5558]
PUSH EAX
CALL 0x0004b5c0
MOV dword ptr [EBX + 0x544],EAX
LEA EAX,[EBX + 0xfffc5538]
MOV dword ptr [ESP],EAX
CALL 0x0004b5c0
MOV dword ptr [EBX + 0x540],EAX
CALL 0x000519e0
ADD ESP,0x10
MOV dword ptr [EBX + 0x53c],EAX
JMP 0x0004a529
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004a510(undefined4 param_1)\n\n{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_0004a510(undefined4 param_1)\n\n{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0004a510(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}" { (if_statement "if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }" if (parenthesized_expression "(DAT_0008522c == 0)" ( (binary_expression "DAT_0008522c == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }" { (expression_statement "DAT_0008522c = FUN_0004b5c0(FUN_0004a240);" (assignment_expression "DAT_0008522c = FUN_0004b5c0(FUN_0004a240)" identifier = (call_expression "FUN_0004b5c0(FUN_0004a240)" identifier (argument_list "(FUN_0004a240)" ( identifier )))) ;) (expression_statement "DAT_00085228 = FUN_0004b5c0(FUN_0004a220);" (assignment_expression "DAT_00085228 = FUN_0004b5c0(FUN_0004a220)" identifier = (call_expression "FUN_0004b5c0(FUN_0004a220)" identifier (argument_list "(FUN_0004a220)" ( identifier )))) ;) (expression_statement "DAT_00085224 = FUN_000519e0();" (assignment_expression "DAT_00085224 = FUN_000519e0()" identifier = (call_expression "FUN_000519e0()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "FUN_0004f330(DAT_00085228,param_1);" (call_expression "FUN_0004f330(DAT_00085228,param_1)" identifier (argument_list "(DAT_00085228,param_1)" ( identifier , identifier ))) ;) (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 */\n\nvoid expire_timer_context(void *ctx)\n\n{\n  if (timers == (tree234 *)0x0) {\n    timers = newtree234(compare_timers);\n    timer_contexts = newtree234(compare_timer_contexts);\n    now = getticks();\n  }\n  del234(timer_contexts,ctx);\n  return;\n}\n\n" comment comment (function_definition "void expire_timer_context(void *ctx)\n\n{\n  if (timers == (tree234 *)0x0) {\n    timers = newtree234(compare_timers);\n    timer_contexts = newtree234(compare_timer_contexts);\n    now = getticks();\n  }\n  del234(timer_contexts,ctx);\n  return;\n}" primitive_type (function_declarator "expire_timer_context(void *ctx)" identifier (parameter_list "(void *ctx)" ( (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  if (timers == (tree234 *)0x0) {\n    timers = newtree234(compare_timers);\n    timer_contexts = newtree234(compare_timer_contexts);\n    now = getticks();\n  }\n  del234(timer_contexts,ctx);\n  return;\n}" { (if_statement "if (timers == (tree234 *)0x0) {\n    timers = newtree234(compare_timers);\n    timer_contexts = newtree234(compare_timer_contexts);\n    now = getticks();\n  }" if (parenthesized_expression "(timers == (tree234 *)0x0)" ( (binary_expression "timers == (tree234 *)0x0" identifier == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    timers = newtree234(compare_timers);\n    timer_contexts = newtree234(compare_timer_contexts);\n    now = getticks();\n  }" { (expression_statement "timers = newtree234(compare_timers);" (assignment_expression "timers = newtree234(compare_timers)" identifier = (call_expression "newtree234(compare_timers)" identifier (argument_list "(compare_timers)" ( identifier )))) ;) (expression_statement "timer_contexts = newtree234(compare_timer_contexts);" (assignment_expression "timer_contexts = newtree234(compare_timer_contexts)" identifier = (call_expression "newtree234(compare_timer_contexts)" identifier (argument_list "(compare_timer_contexts)" ( identifier )))) ;) (expression_statement "now = getticks();" (assignment_expression "now = getticks()" identifier = (call_expression "getticks()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "del234(timer_contexts,ctx);" (call_expression "del234(timer_contexts,ctx)" identifier (argument_list "(timer_contexts,ctx)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004a510(undefined4 param_1)\n\n{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}\n\n" (function_definition "void FUN_0004a510(undefined4 param_1)\n\n{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0004a510(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}" { (if_statement "if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }" if (parenthesized_expression "(DAT_0008522c == 0)" ( (binary_expression "DAT_0008522c == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }" { (expression_statement "DAT_0008522c = FUN_0004b5c0(FUN_0004a240);" (assignment_expression "DAT_0008522c = FUN_0004b5c0(FUN_0004a240)" identifier = (call_expression "FUN_0004b5c0(FUN_0004a240)" identifier (argument_list "(FUN_0004a240)" ( identifier )))) ;) (expression_statement "DAT_00085228 = FUN_0004b5c0(FUN_0004a220);" (assignment_expression "DAT_00085228 = FUN_0004b5c0(FUN_0004a220)" identifier = (call_expression "FUN_0004b5c0(FUN_0004a220)" identifier (argument_list "(FUN_0004a220)" ( identifier )))) ;) (expression_statement "DAT_00085224 = FUN_000519e0();" (assignment_expression "DAT_00085224 = FUN_000519e0()" identifier = (call_expression "FUN_000519e0()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "FUN_0004f330(DAT_00085228,param_1);" (call_expression "FUN_0004f330(DAT_00085228,param_1)" identifier (argument_list "(DAT_00085228,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0004a510(undefined4 param_1)\n\n{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004a510(undefined4 param_1)" (identifier "FUN_0004a510") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }\n  FUN_0004f330(DAT_00085228,param_1);\n  return;\n}" ({ "{") (if_statement "if (DAT_0008522c == 0) {\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }" (if "if") (parenthesized_expression "(DAT_0008522c == 0)" (( "(") (binary_expression "DAT_0008522c == 0" (identifier "DAT_0008522c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);\n    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);\n    DAT_00085224 = FUN_000519e0();\n  }" ({ "{") (expression_statement "DAT_0008522c = FUN_0004b5c0(FUN_0004a240);" (assignment_expression "DAT_0008522c = FUN_0004b5c0(FUN_0004a240)" (identifier "DAT_0008522c") (= "=") (call_expression "FUN_0004b5c0(FUN_0004a240)" (identifier "FUN_0004b5c0") (argument_list "(FUN_0004a240)" (( "(") (identifier "FUN_0004a240") () ")")))) (; ";")) (expression_statement "DAT_00085228 = FUN_0004b5c0(FUN_0004a220);" (assignment_expression "DAT_00085228 = FUN_0004b5c0(FUN_0004a220)" (identifier "DAT_00085228") (= "=") (call_expression "FUN_0004b5c0(FUN_0004a220)" (identifier "FUN_0004b5c0") (argument_list "(FUN_0004a220)" (( "(") (identifier "FUN_0004a220") () ")")))) (; ";")) (expression_statement "DAT_00085224 = FUN_000519e0();" (assignment_expression "DAT_00085224 = FUN_000519e0()" (identifier "DAT_00085224") (= "=") (call_expression "FUN_000519e0()" (identifier "FUN_000519e0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0004f330(DAT_00085228,param_1);" (call_expression "FUN_0004f330(DAT_00085228,param_1)" (identifier "FUN_0004f330") (argument_list "(DAT_00085228,param_1)" (( "(") (identifier "DAT_00085228") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(void *ctx)

{
  if (var_1 == (type_1 *)0x0) {
    var_1 = var_2(compare_timers);
    timer_contexts = var_2(compare_timer_contexts);
    now = var_3();
  }
  var_4(timer_contexts,ctx);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  if (DAT_0008522c == 0) {
    DAT_0008522c = FUN_0004b5c0(FUN_0004a240);
    DAT_00085228 = FUN_0004b5c0(FUN_0004a220);
    DAT_00085224 = FUN_000519e0();
  }
  FUN_0004f330(DAT_00085228,param_1);
  return;
}

