
int raw_exitcode(void *handle)

{
  int iVar1;
  
  if (*(int *)((int)handle + 4) == 0) {
    iVar1 = *(int *)((int)handle + 8);
    if (iVar1 != 0) {
      iVar1 = 0x7fffffff;
    }
    return iVar1;
  }
  return -1;
}



int FUN_00037cf0(int param_1)

{
  int iVar1;
  
  if (*(int *)(param_1 + 4) == 0) {
    iVar1 = *(int *)(param_1 + 8);
    if (iVar1 != 0) {
      iVar1 = 0x7fffffff;
    }
    return iVar1;
  }
  return -1;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
JNZ 0x00037d10
MOV EAX,dword ptr [EAX + 0x8]
MOV EDX,0x7fffffff
TEST EAX,EAX
CMOVNZ EAX,EDX
RET
MOV EAX,0xffffffff
RET
(translation_unit "int FUN_00037cf0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_00037cf0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_00037cf0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 0x7fffffff;\n    }" { (expression_statement "iVar1 = 0x7fffffff;" (assignment_expression "iVar1 = 0x7fffffff" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int raw_exitcode(void *handle)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)handle + 4) == 0) {\n    iVar1 = *(int *)((int)handle + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}\n\n" (function_definition "int raw_exitcode(void *handle)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)handle + 4) == 0) {\n    iVar1 = *(int *)((int)handle + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" primitive_type (function_declarator "raw_exitcode(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)((int)handle + 4) == 0) {\n    iVar1 = *(int *)((int)handle + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)((int)handle + 4) == 0) {\n    iVar1 = *(int *)((int)handle + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)((int)handle + 4) == 0)" ( (binary_expression "*(int *)((int)handle + 4) == 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)((int)handle + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = *(int *)((int)handle + 8);" (assignment_expression "iVar1 = *(int *)((int)handle + 8)" identifier = (pointer_expression "*(int *)((int)handle + 8)" * (cast_expression "(int *)((int)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 0x7fffffff;\n    }" { (expression_statement "iVar1 = 0x7fffffff;" (assignment_expression "iVar1 = 0x7fffffff" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int FUN_00037cf0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_00037cf0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_00037cf0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 0x7fffffff;\n    }" { (expression_statement "iVar1 = 0x7fffffff;" (assignment_expression "iVar1 = 0x7fffffff" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_00037cf0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "FUN_00037cf0(int param_1)" (identifier "FUN_00037cf0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 8);\n    if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n      iVar1 = 0x7fffffff;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 0x7fffffff;\n    }" ({ "{") (expression_statement "iVar1 = 0x7fffffff;" (assignment_expression "iVar1 = 0x7fffffff" (identifier "iVar1") (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

int function_1(void *handle)

{
  int var_1;
  
  if (*(int *)((int)handle + 4) == 0) {
    var_1 = *(int *)((int)handle + 8);
    if (var_1 != 0) {
      var_1 = 0x7fffffff;
    }
    return var_1;
  }
  return -1;
}


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

int MASKED(int param_1)

{
  int iVar1;
  
  if (*(int *)(param_1 + 4) == 0) {
    iVar1 = *(int *)(param_1 + 8);
    if (iVar1 != 0) {
      iVar1 = 0x7fffffff;
    }
    return iVar1;
  }
  return -1;
}

