
/* WARNING: Unknown calling convention */

void logfopen(void *handle)

{
  if ((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)) {
    logfopen(handle);
    return;
  }
  return;
}



void FUN_000297a0(int param_1)

{
  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {
    FUN_00029bb0();
    return;
  }
  return;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [EAX + 0x4]
TEST ECX,ECX
JNZ 0x000297b2
MOV EDX,dword ptr [EAX + 0x20]
TEST EDX,EDX
JNZ 0x000297b8
RET
JMP 0x00029bb0
(translation_unit "void FUN_000297a0(int param_1)\n\n{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000297a0(int param_1)\n\n{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000297a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0))" ( (binary_expression "(*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)" (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) )) && (parenthesized_expression "(*(int *)(param_1 + 0x20) != 0)" ( (binary_expression "*(int *)(param_1 + 0x20) != 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    FUN_00029bb0();\n    return;\n  }" { (expression_statement "FUN_00029bb0();" (call_expression "FUN_00029bb0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid logfopen(void *handle)\n\n{\n  if ((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)) {\n    logfopen(handle);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void logfopen(void *handle)\n\n{\n  if ((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)) {\n    logfopen(handle);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "logfopen(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  if ((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)) {\n    logfopen(handle);\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)) {\n    logfopen(handle);\n    return;\n  }" if (parenthesized_expression "((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0))" ( (binary_expression "(*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)" (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) )) && (parenthesized_expression "(*(int *)((int)handle + 0x20) != 0)" ( (binary_expression "*(int *)((int)handle + 0x20) != 0" (pointer_expression "*(int *)((int)handle + 0x20)" * (cast_expression "(int *)((int)handle + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    logfopen(handle);\n    return;\n  }" { (expression_statement "logfopen(handle);" (call_expression "logfopen(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000297a0(int param_1)\n\n{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000297a0(int param_1)\n\n{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000297a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0))" ( (binary_expression "(*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)" (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) )) && (parenthesized_expression "(*(int *)(param_1 + 0x20) != 0)" ( (binary_expression "*(int *)(param_1 + 0x20) != 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    FUN_00029bb0();\n    return;\n  }" { (expression_statement "FUN_00029bb0();" (call_expression "FUN_00029bb0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (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 (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_000297a0(int param_1)\n\n{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000297a0(int param_1)" (identifier "FUN_000297a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {\n    FUN_00029bb0();\n    return;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0))" (( "(") (binary_expression "(*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)" (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")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x20) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x20) != 0" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00029bb0();\n    return;\n  }" ({ "{") (expression_statement "FUN_00029bb0();" (call_expression "FUN_00029bb0()" (identifier "FUN_00029bb0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(void *handle)

{
  if ((*(int *)((int)handle + 4) == 0) && (*(int *)((int)handle + 0x20) != 0)) {
    function_1(handle);
    return;
  }
  return;
}


(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 (if_statement condition: (parenthesized_expression (binary_expression left: (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))) right: (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 (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (return_statement))))

void MASKED(int param_1)

{
  if ((*(int *)(param_1 + 4) == 0) && (*(int *)(param_1 + 0x20) != 0)) {
    FUN_00029bb0();
    return;
  }
  return;
}

