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

void __cxa_rethrow(void)

{
}



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

void FUN_00246af0(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  piVar2 = (int *)FUN_00247740();
  iVar1 = *piVar2;
  piVar2[1] = piVar2[1] + 1;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));
    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {
      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);
    }
    else {
      *piVar2 = 0;
    }
    FUN_002df2a0(iVar1 + 0x30);
    FUN_00247930(iVar1 + 0x30);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00246bc0();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1cd508
CALL 0x00247740
MOV EDX,dword ptr [EAX]
ADD dword ptr [EAX + 0x4],0x1
TEST EDX,EDX
JZ 0x00246b4c
MOV ESI,dword ptr [EDX + 0x30]
MOV EDI,dword ptr [EDX + 0x34]
MOV ECX,0x1
ADD ESI,0xbcd4d500
ADC EDI,0xb8b1aabc
CMP ECX,ESI
MOV ECX,0x0
SBB ECX,EDI
JNC 0x00246b51
MOV dword ptr [EAX],0x0
SUB ESP,0xc
LEA ESI,[EDX + 0x30]
PUSH ESI
CALL 0x002df2a0
MOV dword ptr [ESP],ESI
CALL 0x00247930
ADD ESP,0x10
CALL 0x00246bc0
NEG dword ptr [EDX + 0x14]
JMP 0x00246b35
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00246af0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00246bc0();\n}\n\n" comment (function_definition "void FUN_00246af0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00246bc0();\n}" primitive_type (function_declarator "FUN_00246af0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00246bc0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)FUN_00247740();" (assignment_expression "piVar2 = (int *)FUN_00247740()" identifier = (cast_expression "(int *)FUN_00247740()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00247740()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar2[1] = piVar2[1] + 1;" (assignment_expression "piVar2[1] = piVar2[1] + 1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "piVar2[1] + 1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" identifier = (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" ( (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }" if (parenthesized_expression "(iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3)" ( (binary_expression "iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3" (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" ( (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" number_literal < (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ))) <= (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (compound_statement "{\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }" { (expression_statement "*(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);" (assignment_expression "*(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14)" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = (unary_expression "-*(int *)(iVar1 + 0x14)" - (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))))) ;) }) (else_clause "else {\n      *piVar2 = 0;\n    }" else (compound_statement "{\n      *piVar2 = 0;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (expression_statement "FUN_002df2a0(iVar1 + 0x30);" (call_expression "FUN_002df2a0(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;) (expression_statement "FUN_00247930(iVar1 + 0x30);" (call_expression "FUN_00247930(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;) })) comment (expression_statement "FUN_00246bc0();" (call_expression "FUN_00246bc0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __cxa_rethrow(void)\n\n{\n}\n\n" comment (function_definition "void __cxa_rethrow(void)\n\n{\n}" primitive_type (function_declarator "__cxa_rethrow(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_00246af0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    \n  FUN_00246bc0();\n}\n\n" (function_definition "void FUN_00246af0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    \n  FUN_00246bc0();\n}" primitive_type (function_declarator "FUN_00246af0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    \n  FUN_00246bc0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)FUN_00247740();" (assignment_expression "piVar2 = (int *)FUN_00247740()" identifier = (cast_expression "(int *)FUN_00247740()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00247740()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar2[1] = piVar2[1] + 1;" (assignment_expression "piVar2[1] = piVar2[1] + 1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "piVar2[1] + 1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" identifier = (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" ( (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }" if (parenthesized_expression "(iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3)" ( (binary_expression "iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3" (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" ( (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" number_literal < (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ))) <= (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (compound_statement "{\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }" { (expression_statement "*(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);" (assignment_expression "*(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14)" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = (unary_expression "-*(int *)(iVar1 + 0x14)" - (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))))) ;) }) (else_clause "else {\n      *piVar2 = 0;\n    }" else (compound_statement "{\n      *piVar2 = 0;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (expression_statement "FUN_002df2a0(iVar1 + 0x30);" (call_expression "FUN_002df2a0(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;) (expression_statement "FUN_00247930(iVar1 + 0x30);" (call_expression "FUN_00247930(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;) })) (expression_statement "FUN_00246bc0();" (call_expression "FUN_00246bc0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ))) <= (binary_expression (parenthesized_expression ( IDENT )) - IDENT))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (unary_expression - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00246af0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    \n  FUN_00246bc0();\n}" (primitive_type "void") (function_declarator "FUN_00246af0(void)" (identifier "FUN_00246af0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_00247740();\n  iVar1 = *piVar2;\n  piVar2[1] = piVar2[1] + 1;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }\n                    \n  FUN_00246bc0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "piVar2 = (int *)FUN_00247740();" (assignment_expression "piVar2 = (int *)FUN_00247740()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00247740()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00247740()" (identifier "FUN_00247740") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar2[1] = piVar2[1] + 1;" (assignment_expression "piVar2[1] = piVar2[1] + 1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "piVar2[1] + 1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_002df2a0(iVar1 + 0x30);\n    FUN_00247930(iVar1 + 0x30);\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (identifier "iVar3") (= "=") (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" (* "*") (cast_expression "(int *)(iVar1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "-0x474e5544")) (+ "+") (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" (( "(") (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" (number_literal "0x432b2aff") (< "<") (pointer_expression "*(uint *)(iVar1 + 0x30)" (* "*") (cast_expression "(uint *)(iVar1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }\n    else {\n      *piVar2 = 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3)" (( "(") (binary_expression "iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3" (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (&& "&&") (binary_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3" (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (( "(") (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" (number_literal "1") (< "<") (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" (* "*") (cast_expression "(uint *)(iVar1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "0xbcd4d500"))) () ")"))) (<= "<=") (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar3")))) () ")")) (compound_statement "{\n      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);\n    }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);" (assignment_expression "*(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14)" (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (unary_expression "-*(int *)(iVar1 + 0x14)" (- "-") (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n      *piVar2 = 0;\n    }" (else "else") (compound_statement "{\n      *piVar2 = 0;\n    }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "FUN_002df2a0(iVar1 + 0x30);" (call_expression "FUN_002df2a0(iVar1 + 0x30)" (identifier "FUN_002df2a0") (argument_list "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))) (; ";")) (expression_statement "FUN_00247930(iVar1 + 0x30);" (call_expression "FUN_00247930(iVar1 + 0x30)" (identifier "FUN_00247930") (argument_list "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00246bc0();" (call_expression "FUN_00246bc0()" (identifier "FUN_00246bc0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(void)

{
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (binary_expression left: (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_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: (unary_expression argument: (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))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  piVar2 = (int *)FUN_00247740();
  iVar1 = *piVar2;
  piVar2[1] = piVar2[1] + 1;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));
    if (iVar3 == 0 && (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500) <= (uint)-iVar3) {
      *(int *)(iVar1 + 0x14) = -*(int *)(iVar1 + 0x14);
    }
    else {
      *piVar2 = 0;
    }
    FUN_002df2a0(iVar1 + 0x30);
    FUN_00247930(iVar1 + 0x30);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00246bc0();
}

