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

void MonitorComponentTerminus(void)

{
  if (monitor_semaphore == (SemaphoreInfo *)0x0) {
    ActivateSemaphoreInfo(&monitor_semaphore);
  }
  LockSemaphoreInfo(monitor_semaphore);
  UnlockSemaphoreInfo(monitor_semaphore);
  RelinquishSemaphoreInfo(&monitor_semaphore);
  return;
}



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

void FUN_000fbeb0(void)

{
  if (DAT_003dd91c == 0) {
    ActivateSemaphoreInfo(&DAT_003dd91c);
  }
  LockSemaphoreInfo(DAT_003dd91c);
  UnlockSemaphoreInfo(DAT_003dd91c);
  RelinquishSemaphoreInfo(&DAT_003dd91c);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2dd149
SUB ESP,0x4
MOV EAX,dword ptr [EBX + 0x491c]
LEA ESI,[EBX + 0x491c]
TEST EAX,EAX
JZ 0x000fbef8
SUB ESP,0xc
PUSH EAX
CALL 0x00031050
POP EAX
PUSH dword ptr [EBX + 0x491c]
CALL 0x00031da0
MOV dword ptr [ESP],ESI
CALL 0x00030760
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00031830
MOV EAX,dword ptr [EBX + 0x491c]
ADD ESP,0x10
JMP 0x000fbed0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000fbeb0(void)\n\n{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}\n\n" comment (function_definition "void FUN_000fbeb0(void)\n\n{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}" primitive_type (function_declarator "FUN_000fbeb0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}" { (if_statement "if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }" if (parenthesized_expression "(DAT_003dd91c == 0)" ( (binary_expression "DAT_003dd91c == 0" identifier == number_literal) )) (compound_statement "{\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }" { (expression_statement "ActivateSemaphoreInfo(&DAT_003dd91c);" (call_expression "ActivateSemaphoreInfo(&DAT_003dd91c)" identifier (argument_list "(&DAT_003dd91c)" ( (pointer_expression "&DAT_003dd91c" & identifier) ))) ;) })) (expression_statement "LockSemaphoreInfo(DAT_003dd91c);" (call_expression "LockSemaphoreInfo(DAT_003dd91c)" identifier (argument_list "(DAT_003dd91c)" ( identifier ))) ;) (expression_statement "UnlockSemaphoreInfo(DAT_003dd91c);" (call_expression "UnlockSemaphoreInfo(DAT_003dd91c)" identifier (argument_list "(DAT_003dd91c)" ( identifier ))) ;) (expression_statement "RelinquishSemaphoreInfo(&DAT_003dd91c);" (call_expression "RelinquishSemaphoreInfo(&DAT_003dd91c)" identifier (argument_list "(&DAT_003dd91c)" ( (pointer_expression "&DAT_003dd91c" & 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 -- yet parameter storage is locked */\n\nvoid MonitorComponentTerminus(void)\n\n{\n  if (monitor_semaphore == (SemaphoreInfo *)0x0) {\n    ActivateSemaphoreInfo(&monitor_semaphore);\n  }\n  LockSemaphoreInfo(monitor_semaphore);\n  UnlockSemaphoreInfo(monitor_semaphore);\n  RelinquishSemaphoreInfo(&monitor_semaphore);\n  return;\n}\n\n" comment comment (function_definition "void MonitorComponentTerminus(void)\n\n{\n  if (monitor_semaphore == (SemaphoreInfo *)0x0) {\n    ActivateSemaphoreInfo(&monitor_semaphore);\n  }\n  LockSemaphoreInfo(monitor_semaphore);\n  UnlockSemaphoreInfo(monitor_semaphore);\n  RelinquishSemaphoreInfo(&monitor_semaphore);\n  return;\n}" primitive_type (function_declarator "MonitorComponentTerminus(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (monitor_semaphore == (SemaphoreInfo *)0x0) {\n    ActivateSemaphoreInfo(&monitor_semaphore);\n  }\n  LockSemaphoreInfo(monitor_semaphore);\n  UnlockSemaphoreInfo(monitor_semaphore);\n  RelinquishSemaphoreInfo(&monitor_semaphore);\n  return;\n}" { (if_statement "if (monitor_semaphore == (SemaphoreInfo *)0x0) {\n    ActivateSemaphoreInfo(&monitor_semaphore);\n  }" if (parenthesized_expression "(monitor_semaphore == (SemaphoreInfo *)0x0)" ( (binary_expression "monitor_semaphore == (SemaphoreInfo *)0x0" identifier == (cast_expression "(SemaphoreInfo *)0x0" ( (type_descriptor "SemaphoreInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ActivateSemaphoreInfo(&monitor_semaphore);\n  }" { (expression_statement "ActivateSemaphoreInfo(&monitor_semaphore);" (call_expression "ActivateSemaphoreInfo(&monitor_semaphore)" identifier (argument_list "(&monitor_semaphore)" ( (pointer_expression "&monitor_semaphore" & identifier) ))) ;) })) (expression_statement "LockSemaphoreInfo(monitor_semaphore);" (call_expression "LockSemaphoreInfo(monitor_semaphore)" identifier (argument_list "(monitor_semaphore)" ( identifier ))) ;) (expression_statement "UnlockSemaphoreInfo(monitor_semaphore);" (call_expression "UnlockSemaphoreInfo(monitor_semaphore)" identifier (argument_list "(monitor_semaphore)" ( identifier ))) ;) (expression_statement "RelinquishSemaphoreInfo(&monitor_semaphore);" (call_expression "RelinquishSemaphoreInfo(&monitor_semaphore)" identifier (argument_list "(&monitor_semaphore)" ( (pointer_expression "&monitor_semaphore" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000fbeb0(void)\n\n{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}\n\n" (function_definition "void FUN_000fbeb0(void)\n\n{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}" primitive_type (function_declarator "FUN_000fbeb0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}" { (if_statement "if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }" if (parenthesized_expression "(DAT_003dd91c == 0)" ( (binary_expression "DAT_003dd91c == 0" identifier == number_literal) )) (compound_statement "{\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }" { (expression_statement "ActivateSemaphoreInfo(&DAT_003dd91c);" (call_expression "ActivateSemaphoreInfo(&DAT_003dd91c)" identifier (argument_list "(&DAT_003dd91c)" ( (pointer_expression "&DAT_003dd91c" & identifier) ))) ;) })) (expression_statement "LockSemaphoreInfo(DAT_003dd91c);" (call_expression "LockSemaphoreInfo(DAT_003dd91c)" identifier (argument_list "(DAT_003dd91c)" ( identifier ))) ;) (expression_statement "UnlockSemaphoreInfo(DAT_003dd91c);" (call_expression "UnlockSemaphoreInfo(DAT_003dd91c)" identifier (argument_list "(DAT_003dd91c)" ( identifier ))) ;) (expression_statement "RelinquishSemaphoreInfo(&DAT_003dd91c);" (call_expression "RelinquishSemaphoreInfo(&DAT_003dd91c)" identifier (argument_list "(&DAT_003dd91c)" ( (pointer_expression "&DAT_003dd91c" & identifier) ))) ;) (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 ( (pointer_expression & IDENT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000fbeb0(void)\n\n{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000fbeb0(void)" (identifier "FUN_000fbeb0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }\n  LockSemaphoreInfo(DAT_003dd91c);\n  UnlockSemaphoreInfo(DAT_003dd91c);\n  RelinquishSemaphoreInfo(&DAT_003dd91c);\n  return;\n}" ({ "{") (if_statement "if (DAT_003dd91c == 0) {\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }" (if "if") (parenthesized_expression "(DAT_003dd91c == 0)" (( "(") (binary_expression "DAT_003dd91c == 0" (identifier "DAT_003dd91c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    ActivateSemaphoreInfo(&DAT_003dd91c);\n  }" ({ "{") (expression_statement "ActivateSemaphoreInfo(&DAT_003dd91c);" (call_expression "ActivateSemaphoreInfo(&DAT_003dd91c)" (identifier "ActivateSemaphoreInfo") (argument_list "(&DAT_003dd91c)" (( "(") (pointer_expression "&DAT_003dd91c" (& "&") (identifier "DAT_003dd91c")) () ")"))) (; ";")) (} "}"))) (expression_statement "LockSemaphoreInfo(DAT_003dd91c);" (call_expression "LockSemaphoreInfo(DAT_003dd91c)" (identifier "LockSemaphoreInfo") (argument_list "(DAT_003dd91c)" (( "(") (identifier "DAT_003dd91c") () ")"))) (; ";")) (expression_statement "UnlockSemaphoreInfo(DAT_003dd91c);" (call_expression "UnlockSemaphoreInfo(DAT_003dd91c)" (identifier "UnlockSemaphoreInfo") (argument_list "(DAT_003dd91c)" (( "(") (identifier "DAT_003dd91c") () ")"))) (; ";")) (expression_statement "RelinquishSemaphoreInfo(&DAT_003dd91c);" (call_expression "RelinquishSemaphoreInfo(&DAT_003dd91c)" (identifier "RelinquishSemaphoreInfo") (argument_list "(&DAT_003dd91c)" (( "(") (pointer_expression "&DAT_003dd91c" (& "&") (identifier "DAT_003dd91c")) () ")"))) (; ";")) (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 == (type_1 *)0x0) {
    var_2(&var_1);
  }
  var_3(var_1);
  var_4(var_1);
  var_5(&var_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 (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (return_statement))))

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

void MASKED(void)

{
  if (DAT_003dd91c == 0) {
    ActivateSemaphoreInfo(&DAT_003dd91c);
  }
  LockSemaphoreInfo(DAT_003dd91c);
  UnlockSemaphoreInfo(DAT_003dd91c);
  RelinquishSemaphoreInfo(&DAT_003dd91c);
  return;
}

