
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void __regparm3 nohup_job(int job_index)

{
  int *piVar1;
  
  if (jobs[job_index] != (JOB *)0x0) {
    piVar1 = &jobs[job_index]->flags;
    *piVar1 = *piVar1 | 8;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void __regparm3 FUN_0005dcd0(int param_1)

{
  uint *puVar1;
  int iVar2;
  
  iVar2 = *(int *)(jobs + param_1 * 4);
  if (iVar2 != 0) {
    puVar1 = (uint *)(iVar2 + 0x10);
    *puVar1 = *puVar1 | 8;
  }
  return;
}


CALL 0x00032005
ADD EDX,0xec32b
MOV EDX,dword ptr [EDX + 0x5ef4]
MOV EAX,dword ptr [EDX + EAX*0x4]
TEST EAX,EAX
JZ 0x0005dcec
OR dword ptr [EAX + 0x10],0x8
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid __regparm3 FUN_0005dcd0(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0005dcd0(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005dcd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(jobs + param_1 * 4);" (assignment_expression "iVar2 = *(int *)(jobs + param_1 * 4)" identifier = (pointer_expression "*(int *)(jobs + param_1 * 4)" * (cast_expression "(int *)(jobs + param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(jobs + param_1 * 4)" ( (binary_expression "jobs + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }" { (expression_statement "puVar1 = (uint *)(iVar2 + 0x10);" (assignment_expression "puVar1 = (uint *)(iVar2 + 0x10)" identifier = (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 8;" (assignment_expression "*puVar1 = *puVar1 | 8" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 8" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid __regparm3 nohup_job(int job_index)\n\n{\n  int *piVar1;\n  \n  if (jobs[job_index] != (JOB *)0x0) {\n    piVar1 = &jobs[job_index]->flags;\n    *piVar1 = *piVar1 | 8;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 nohup_job(int job_index)\n\n{\n  int *piVar1;\n  \n  if (jobs[job_index] != (JOB *)0x0) {\n    piVar1 = &jobs[job_index]->flags;\n    *piVar1 = *piVar1 | 8;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "nohup_job(int job_index)" identifier (parameter_list "(int job_index)" ( (parameter_declaration "int job_index" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (jobs[job_index] != (JOB *)0x0) {\n    piVar1 = &jobs[job_index]->flags;\n    *piVar1 = *piVar1 | 8;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (jobs[job_index] != (JOB *)0x0) {\n    piVar1 = &jobs[job_index]->flags;\n    *piVar1 = *piVar1 | 8;\n  }" if (parenthesized_expression "(jobs[job_index] != (JOB *)0x0)" ( (binary_expression "jobs[job_index] != (JOB *)0x0" (subscript_expression "jobs[job_index]" identifier [ identifier ]) != (cast_expression "(JOB *)0x0" ( (type_descriptor "JOB *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar1 = &jobs[job_index]->flags;\n    *piVar1 = *piVar1 | 8;\n  }" { (expression_statement "piVar1 = &jobs[job_index]->flags;" (assignment_expression "piVar1 = &jobs[job_index]->flags" identifier = (pointer_expression "&jobs[job_index]->flags" & (field_expression "jobs[job_index]->flags" (subscript_expression "jobs[job_index]" identifier [ identifier ]) -> field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 | 8;" (assignment_expression "*piVar1 = *piVar1 | 8" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 | 8" (pointer_expression "*piVar1" * identifier) | number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0005dcd0(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005dcd0(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005dcd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(jobs + param_1 * 4);" (assignment_expression "iVar2 = *(int *)(jobs + param_1 * 4)" identifier = (pointer_expression "*(int *)(jobs + param_1 * 4)" * (cast_expression "(int *)(jobs + param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(jobs + param_1 * 4)" ( (binary_expression "jobs + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }" { (expression_statement "puVar1 = (uint *)(iVar2 + 0x10);" (assignment_expression "puVar1 = (uint *)(iVar2 + 0x10)" identifier = (cast_expression "(uint *)(iVar2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 8;" (assignment_expression "*puVar1 = *puVar1 | 8" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 8" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0005dcd0(int param_1)\n\n{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005dcd0(int param_1)" (identifier "FUN_0005dcd0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(jobs + param_1 * 4);\n  if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(jobs + param_1 * 4);" (assignment_expression "iVar2 = *(int *)(jobs + param_1 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(jobs + param_1 * 4)" (* "*") (cast_expression "(int *)(jobs + param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(jobs + param_1 * 4)" (( "(") (binary_expression "jobs + param_1 * 4" (identifier "jobs") (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = (uint *)(iVar2 + 0x10);\n    *puVar1 = *puVar1 | 8;\n  }" ({ "{") (expression_statement "puVar1 = (uint *)(iVar2 + 0x10);" (assignment_expression "puVar1 = (uint *)(iVar2 + 0x10)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(iVar2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*puVar1 = *puVar1 | 8;" (assignment_expression "*puVar1 = *puVar1 | 8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 | 8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (| "|") (number_literal "8"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void __regparm3 function_1(int job_index)

{
  int *piVar1;
  
  if (jobs[job_index] != (type_1 *)0x0) {
    piVar1 = &jobs[job_index]->flags;
    *piVar1 = *piVar1 | 8;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void __regparm3 MASKED(int param_1)

{
  uint *puVar1;
  int iVar2;
  
  iVar2 = *(int *)(jobs + param_1 * 4);
  if (iVar2 != 0) {
    puVar1 = (uint *)(iVar2 + 0x10);
    *puVar1 = *puVar1 | 8;
  }
  return;
}

