
void write_reject_log_reason(FILE *fp,reject_reason reason,url *url,url *parent)

{
  if (fp == (FILE *)0x0) {
    return;
  }
  if (reason < (WG_RR_REGEX|WG_RR_ABSOLUTE)) {
                    /* WARNING: Could not emulate address calculation at 0x00049324 */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();
    return;
  }
  (*(code *)PTR___fprintf_chk_000afe0c)
            (fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);
  write_reject_log_url(fp,url);
  (*(code *)PTR_fputc_000afbc4)(9,fp);
  write_reject_log_url(fp,parent);
                    /* WARNING: Could not recover jumptable at 0x000493c4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_fputc_000afbc4)(10,fp);
  return;
}



void FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)

{
  if (param_1 == 0) {
    return;
  }
  if (param_2 < 0xc) {
                    /* WARNING: Could not emulate address calculation at 0x00049324 */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();
    return;
  }
  (*(code *)PTR___fprintf_chk_000afe0c)
            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);
  FUN_00049188(param_1,param_3);
  (*(code *)PTR_fputc_000afbc4)(9,param_1);
  FUN_00049188(param_1,param_4);
  (*(code *)PTR_fputc_000afbc4)(10,param_1);
  return;
}


lui gp,0x7
addiu gp,gp,-0x1eb4
addu gp,gp,t9
beq a0,zero,0x00049450
_nop
addiu sp,sp,-0x28
sltiu v0,a1,0xc
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq v0,zero,0x00049458
_sw s0,0x18(sp)
lw v0,-0x7fc4(gp)
sll v1,a1,0x2
addiu v0,v0,0x7010
addu v0,v0,v1
lw v0,0x0(v0)
addu v0,v0,gp
jr v0
_nop
lw v0,-0x7fc4(gp)
addiu v0,v0,0x6d64
or s1,a2,zero
lw a2,-0x7fc4(gp)
lw t9,-0x7624(gp)
li a1,0x1
or s2,a3,zero
addiu a2,a2,0x6dcc
or a3,v0,zero
jalr t9
_or s0,a0,zero
lw gp,0x10(sp)
or a1,s1,zero
lw s1,-0x7b18(gp)
addiu s1,s1,-0x6e78
or t9,s1,zero
bal 0x00049188
_or a0,s0,zero
li a0,0x9
lw gp,0x10(sp)
lw t9,-0x786c(gp)
jalr t9
_or a1,s0,zero
or a1,s2,zero
or t9,s1,zero
bal 0x00049188
_or a0,s0,zero
or a1,s0,zero
lw gp,0x10(sp)
li a0,0xa
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x786c(gp)
jr t9
_addiu sp,sp,0x28
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6dc0
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d6c
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d78
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d80
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d8c
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d94
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,-0x15b8
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d9c
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6da4
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6dac
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6db8
jr ra
_nop
lw v0,-0x7fc4(gp)
b 0x00049340
_addiu v0,v0,0x6d5c
(translation_unit "void FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}\n\n" (function_definition "void FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}" { (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0xc) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }" if (parenthesized_expression "(param_2 < 0xc)" ( (binary_expression "param_2 < 0xc" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }" { comment comment (expression_statement "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();" (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" ( (binary_expression "&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" * (cast_expression "(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" ( (binary_expression "PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010" (binary_expression "PTR_s_hallenge__000af46c + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" * (cast_expression "(code *)PTR___fprintf_chk_000afe0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" ( identifier , number_literal , (binary_expression "PTR_s_hallenge__000af46c + 0x6dcc" identifier + number_literal) , (binary_expression "PTR_s_hallenge__000af46c + 0x6d5c" identifier + number_literal) ))) ;) (expression_statement "FUN_00049188(param_1,param_3);" (call_expression "FUN_00049188(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_fputc_000afbc4)(9,param_1);" (call_expression "(*(code *)PTR_fputc_000afbc4)(9,param_1)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" ( (pointer_expression "*(code *)PTR_fputc_000afbc4" * (cast_expression "(code *)PTR_fputc_000afbc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(9,param_1)" ( number_literal , identifier ))) ;) (expression_statement "FUN_00049188(param_1,param_4);" (call_expression "FUN_00049188(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_fputc_000afbc4)(10,param_1);" (call_expression "(*(code *)PTR_fputc_000afbc4)(10,param_1)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" ( (pointer_expression "*(code *)PTR_fputc_000afbc4" * (cast_expression "(code *)PTR_fputc_000afbc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,param_1)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void write_reject_log_reason(FILE *fp,reject_reason reason,url *url,url *parent)\n\n{\n  if (fp == (FILE *)0x0) {\n    return;\n  }\n  if (reason < (WG_RR_REGEX|WG_RR_ABSOLUTE)) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  write_reject_log_url(fp,url);\n  (*(code *)PTR_fputc_000afbc4)(9,fp);\n  write_reject_log_url(fp,parent);\n                    /* WARNING: Could not recover jumptable at 0x000493c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_fputc_000afbc4)(10,fp);\n  return;\n}\n\n" (function_definition "void write_reject_log_reason(FILE *fp,reject_reason reason,url *url,url *parent)\n\n{\n  if (fp == (FILE *)0x0) {\n    return;\n  }\n  if (reason < (WG_RR_REGEX|WG_RR_ABSOLUTE)) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  write_reject_log_url(fp,url);\n  (*(code *)PTR_fputc_000afbc4)(9,fp);\n  write_reject_log_url(fp,parent);\n                    /* WARNING: Could not recover jumptable at 0x000493c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_fputc_000afbc4)(10,fp);\n  return;\n}" primitive_type (function_declarator "write_reject_log_reason(FILE *fp,reject_reason reason,url *url,url *parent)" identifier (parameter_list "(FILE *fp,reject_reason reason,url *url,url *parent)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "reject_reason reason" type_identifier identifier) , (parameter_declaration "url *url" type_identifier (pointer_declarator "*url" * identifier)) , (parameter_declaration "url *parent" type_identifier (pointer_declarator "*parent" * identifier)) ))) (compound_statement "{\n  if (fp == (FILE *)0x0) {\n    return;\n  }\n  if (reason < (WG_RR_REGEX|WG_RR_ABSOLUTE)) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  write_reject_log_url(fp,url);\n  (*(code *)PTR_fputc_000afbc4)(9,fp);\n  write_reject_log_url(fp,parent);\n                    /* WARNING: Could not recover jumptable at 0x000493c4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_fputc_000afbc4)(10,fp);\n  return;\n}" { (if_statement "if (fp == (FILE *)0x0) {\n    return;\n  }" if (parenthesized_expression "(fp == (FILE *)0x0)" ( (binary_expression "fp == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (reason < (WG_RR_REGEX|WG_RR_ABSOLUTE)) {\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();\n    return;\n  }" if (parenthesized_expression "(reason < (WG_RR_REGEX|WG_RR_ABSOLUTE))" ( (binary_expression "reason < (WG_RR_REGEX|WG_RR_ABSOLUTE)" identifier < (parenthesized_expression "(WG_RR_REGEX|WG_RR_ABSOLUTE)" ( (binary_expression "WG_RR_REGEX|WG_RR_ABSOLUTE" identifier | identifier) ))) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x00049324 */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();\n    return;\n  }" { comment comment (expression_statement "(*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))();" (call_expression "(*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))()" (parenthesized_expression "(*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)))" ( (pointer_expression "*(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010))" * (cast_expression "(code *)(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010))" ( (binary_expression "&_gp + *(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)" (pointer_expression "&_gp" & identifier) + (pointer_expression "*(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)" * (cast_expression "(int *)(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_hallenge__000af46c + reason * 4 + 0x7010)" ( (binary_expression "PTR_s_hallenge__000af46c + reason * 4 + 0x7010" (binary_expression "PTR_s_hallenge__000af46c + reason * 4" identifier + (binary_expression "reason * 4" identifier * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)\n            (fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)\n            (fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" * (cast_expression "(code *)PTR___fprintf_chk_000afe0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" ( identifier , number_literal , (binary_expression "PTR_s_hallenge__000af46c + 0x6dcc" identifier + number_literal) , (binary_expression "PTR_s_hallenge__000af46c + 0x6d5c" identifier + number_literal) ))) ;) (expression_statement "write_reject_log_url(fp,url);" (call_expression "write_reject_log_url(fp,url)" identifier (argument_list "(fp,url)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_fputc_000afbc4)(9,fp);" (call_expression "(*(code *)PTR_fputc_000afbc4)(9,fp)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" ( (pointer_expression "*(code *)PTR_fputc_000afbc4" * (cast_expression "(code *)PTR_fputc_000afbc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(9,fp)" ( number_literal , identifier ))) ;) (expression_statement "write_reject_log_url(fp,parent);" (call_expression "write_reject_log_url(fp,parent)" identifier (argument_list "(fp,parent)" ( identifier , identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_fputc_000afbc4)(10,fp);" (call_expression "(*(code *)PTR_fputc_000afbc4)(10,fp)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" ( (pointer_expression "*(code *)PTR_fputc_000afbc4" * (cast_expression "(code *)PTR_fputc_000afbc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,fp)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}\n\n" (function_definition "void FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}" { (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }" if (parenthesized_expression "(param_2 < 0xc)" ( (binary_expression "param_2 < 0xc" identifier < number_literal) )) (compound_statement "{\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }" { (expression_statement "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();" (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" ( (binary_expression "&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" * (cast_expression "(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" ( (binary_expression "PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010" (binary_expression "PTR_s_hallenge__000af46c + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" * (cast_expression "(code *)PTR___fprintf_chk_000afe0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" ( identifier , number_literal , (binary_expression "PTR_s_hallenge__000af46c + 0x6dcc" identifier + number_literal) , (binary_expression "PTR_s_hallenge__000af46c + 0x6d5c" identifier + number_literal) ))) ;) (expression_statement "FUN_00049188(param_1,param_3);" (call_expression "FUN_00049188(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_fputc_000afbc4)(9,param_1);" (call_expression "(*(code *)PTR_fputc_000afbc4)(9,param_1)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" ( (pointer_expression "*(code *)PTR_fputc_000afbc4" * (cast_expression "(code *)PTR_fputc_000afbc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(9,param_1)" ( number_literal , identifier ))) ;) (expression_statement "FUN_00049188(param_1,param_4);" (call_expression "FUN_00049188(param_1,param_4)" identifier (argument_list "(param_1,param_4)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_fputc_000afbc4)(10,param_1);" (call_expression "(*(code *)PTR_fputc_000afbc4)(10,param_1)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" ( (pointer_expression "*(code *)PTR_fputc_000afbc4" * (cast_expression "(code *)PTR_fputc_000afbc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,param_1)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))))) )))) )) (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000492e4(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000492e4") (parameter_list "(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (param_1 == 0) {\n    return;\n  }\n  if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }\n  (*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);\n  FUN_00049188(param_1,param_3);\n  (*(code *)PTR_fputc_000afbc4)(9,param_1);\n  FUN_00049188(param_1,param_4);\n  (*(code *)PTR_fputc_000afbc4)(10,param_1);\n  return;\n}" ({ "{") (if_statement "if (param_1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 < 0xc) {\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < 0xc)" (( "(") (binary_expression "param_2 < 0xc" (identifier "param_2") (< "<") (number_literal "0xc")) () ")")) (compound_statement "{\n                    \n                    \n    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();\n    return;\n  }" ({ "{") (expression_statement "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();" (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))" (( "(") (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" (* "*") (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010))" (( "(") (binary_expression "&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" (pointer_expression "&_gp_1" (& "&") (identifier "_gp_1")) (+ "+") (pointer_expression "*(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" (* "*") (cast_expression "(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010" (binary_expression "PTR_s_hallenge__000af46c + param_2 * 4" (identifier "PTR_s_hallenge__000af46c") (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) (+ "+") (number_literal "0x7010")) () ")"))))) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);" (call_expression "(*(code *)PTR___fprintf_chk_000afe0c)\n            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_000afe0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_000afe0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_000afe0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_000afe0c"))) () ")")) (argument_list "(param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (binary_expression "PTR_s_hallenge__000af46c + 0x6dcc" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x6dcc")) (, ",") (binary_expression "PTR_s_hallenge__000af46c + 0x6d5c" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x6d5c")) () ")"))) (; ";")) (expression_statement "FUN_00049188(param_1,param_3);" (call_expression "FUN_00049188(param_1,param_3)" (identifier "FUN_00049188") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_fputc_000afbc4)(9,param_1);" (call_expression "(*(code *)PTR_fputc_000afbc4)(9,param_1)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" (( "(") (pointer_expression "*(code *)PTR_fputc_000afbc4" (* "*") (cast_expression "(code *)PTR_fputc_000afbc4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fputc_000afbc4"))) () ")")) (argument_list "(9,param_1)" (( "(") (number_literal "9") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00049188(param_1,param_4);" (call_expression "FUN_00049188(param_1,param_4)" (identifier "FUN_00049188") (argument_list "(param_1,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_fputc_000afbc4)(10,param_1);" (call_expression "(*(code *)PTR_fputc_000afbc4)(10,param_1)" (parenthesized_expression "(*(code *)PTR_fputc_000afbc4)" (( "(") (pointer_expression "*(code *)PTR_fputc_000afbc4" (* "*") (cast_expression "(code *)PTR_fputc_000afbc4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fputc_000afbc4"))) () ")")) (argument_list "(10,param_1)" (( "(") (number_literal "10") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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 (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))))) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier)))) (return_statement))))

void MASKED(int param_1,uint param_2,undefined4 param_3,undefined4 param_4)

{
  if (param_1 == 0) {
    return;
  }
  if (param_2 < 0xc) {
                    /* WARNING: Could not emulate address calculation at 0x00049324 */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)(&_gp_1 + *(int *)(PTR_s_hallenge__000af46c + param_2 * 4 + 0x7010)))();
    return;
  }
  (*(code *)PTR___fprintf_chk_000afe0c)
            (param_1,1,PTR_s_hallenge__000af46c + 0x6dcc,PTR_s_hallenge__000af46c + 0x6d5c);
  FUN_00049188(param_1,param_3);
  (*(code *)PTR_fputc_000afbc4)(9,param_1);
  FUN_00049188(param_1,param_4);
  (*(code *)PTR_fputc_000afbc4)(10,param_1);
  return;
}

