
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void ssh_unthrottle(void *handle,int bufsize)

{
  if (*(int *)((int)handle + 0x198) == 1) {
    if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {
      *(undefined4 *)((int)handle + 0x1a8) = 0;
      ssh_throttle_conn((Ssh_conflict)handle,-1);
    }
  }
  else if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {
    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);
  }
  ssh_process_queued_incoming_data((Ssh_conflict)handle);
  return;
}



void FUN_000467d0(int param_1,int param_2)

{
  if (*(int *)(param_1 + 0x198) == 1) {
    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {
      *(undefined4 *)(param_1 + 0x1a8) = 0;
      FUN_0003bfa0();
    }
  }
  else if (*(int *)(param_1 + 0x128) != 0) {
    FUN_00046730();
  }
  FUN_00039bf0();
  return;
}


PUSH EBX
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
CMP dword ptr [EBX + 0x198],0x1
JZ 0x00046800
MOV EAX,dword ptr [EBX + 0x128]
TEST EAX,EAX
JZ 0x000467f4
CALL 0x00046730
ADD ESP,0x8
MOV EAX,EBX
POP EBX
JMP 0x00039bf0
MOV EAX,dword ptr [EBX + 0x1a8]
TEST EAX,EAX
JZ 0x000467f4
CMP EDX,0x7fff
JG 0x000467f4
MOV dword ptr [EBX + 0x1a8],0x0
MOV EDX,0xffffffff
MOV EAX,EBX
CALL 0x0003bfa0
JMP 0x000467f4
(translation_unit "void FUN_000467d0(int param_1,int param_2)\n\n{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}\n\n" (function_definition "void FUN_000467d0(int param_1,int param_2)\n\n{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}" primitive_type (function_declarator "FUN_000467d0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 1)" ( (binary_expression "*(int *)(param_1 + 0x198) == 1" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000))" ( (binary_expression "(*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)" (parenthesized_expression "(*(int *)(param_1 + 0x1a8) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1a8) != 0" (pointer_expression "*(int *)(param_1 + 0x1a8)" * (cast_expression "(int *)(param_1 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_2 < 0x8000)" ( (binary_expression "param_2 < 0x8000" identifier < number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" * (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0003bfa0();" (call_expression "FUN_0003bfa0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" else (if_statement "if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) != 0)" ( (binary_expression "*(int *)(param_1 + 0x128) != 0" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00046730();\n  }" { (expression_statement "FUN_00046730();" (call_expression "FUN_00046730()" identifier (argument_list "()" ( ))) ;) })))) (expression_statement "FUN_00039bf0();" (call_expression "FUN_00039bf0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_unthrottle(void *handle,int bufsize)\n\n{\n  if (*(int *)((int)handle + 0x198) == 1) {\n    if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }\n  }\n  else if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }\n  ssh_process_queued_incoming_data((Ssh_conflict)handle);\n  return;\n}\n\n" comment comment (function_definition "void ssh_unthrottle(void *handle,int bufsize)\n\n{\n  if (*(int *)((int)handle + 0x198) == 1) {\n    if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }\n  }\n  else if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }\n  ssh_process_queued_incoming_data((Ssh_conflict)handle);\n  return;\n}" primitive_type (function_declarator "ssh_unthrottle(void *handle,int bufsize)" identifier (parameter_list "(void *handle,int bufsize)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "int bufsize" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)((int)handle + 0x198) == 1) {\n    if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }\n  }\n  else if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }\n  ssh_process_queued_incoming_data((Ssh_conflict)handle);\n  return;\n}" { (if_statement "if (*(int *)((int)handle + 0x198) == 1) {\n    if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }\n  }\n  else if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }" if (parenthesized_expression "(*(int *)((int)handle + 0x198) == 1)" ( (binary_expression "*(int *)((int)handle + 0x198) == 1" (pointer_expression "*(int *)((int)handle + 0x198)" * (cast_expression "(int *)((int)handle + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x198)" ( (binary_expression "(int)handle + 0x198" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }\n  }" { (if_statement "if ((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)) {\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }" if (parenthesized_expression "((*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000))" ( (binary_expression "(*(int *)((int)handle + 0x1a8) != 0) && (bufsize < 0x8000)" (parenthesized_expression "(*(int *)((int)handle + 0x1a8) != 0)" ( (binary_expression "*(int *)((int)handle + 0x1a8) != 0" (pointer_expression "*(int *)((int)handle + 0x1a8)" * (cast_expression "(int *)((int)handle + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1a8)" ( (binary_expression "(int)handle + 0x1a8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(bufsize < 0x8000)" ( (binary_expression "bufsize < 0x8000" identifier < number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)((int)handle + 0x1a8) = 0;\n      ssh_throttle_conn((Ssh_conflict)handle,-1);\n    }" { (expression_statement "*(undefined4 *)((int)handle + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x1a8) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x1a8)" * (cast_expression "(undefined4 *)((int)handle + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1a8)" ( (binary_expression "(int)handle + 0x1a8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "ssh_throttle_conn((Ssh_conflict)handle,-1);" (call_expression "ssh_throttle_conn((Ssh_conflict)handle,-1)" identifier (argument_list "((Ssh_conflict)handle,-1)" ( (cast_expression "(Ssh_conflict)handle" ( (type_descriptor "Ssh_conflict" type_identifier) ) identifier) , number_literal ))) ;) })) }) (else_clause "else if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }" else (if_statement "if (*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0) {\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }" if (parenthesized_expression "(*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0)" ( (binary_expression "*(ssh_channel **)((int)handle + 0x128) != (ssh_channel *)0x0" (pointer_expression "*(ssh_channel **)((int)handle + 0x128)" * (cast_expression "(ssh_channel **)((int)handle + 0x128)" ( (type_descriptor "ssh_channel **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x128)" ( (binary_expression "(int)handle + 0x128" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(ssh_channel *)0x0" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);\n  }" { (expression_statement "ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize);" (call_expression "ssh_channel_unthrottle(*(ssh_channel **)((int)handle + 0x128),bufsize)" identifier (argument_list "(*(ssh_channel **)((int)handle + 0x128),bufsize)" ( (pointer_expression "*(ssh_channel **)((int)handle + 0x128)" * (cast_expression "(ssh_channel **)((int)handle + 0x128)" ( (type_descriptor "ssh_channel **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x128)" ( (binary_expression "(int)handle + 0x128" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier ))) ;) })))) (expression_statement "ssh_process_queued_incoming_data((Ssh_conflict)handle);" (call_expression "ssh_process_queued_incoming_data((Ssh_conflict)handle)" identifier (argument_list "((Ssh_conflict)handle)" ( (cast_expression "(Ssh_conflict)handle" ( (type_descriptor "Ssh_conflict" type_identifier) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000467d0(int param_1,int param_2)\n\n{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}\n\n" (function_definition "void FUN_000467d0(int param_1,int param_2)\n\n{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}" primitive_type (function_declarator "FUN_000467d0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 1)" ( (binary_expression "*(int *)(param_1 + 0x198) == 1" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000))" ( (binary_expression "(*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)" (parenthesized_expression "(*(int *)(param_1 + 0x1a8) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1a8) != 0" (pointer_expression "*(int *)(param_1 + 0x1a8)" * (cast_expression "(int *)(param_1 + 0x1a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_2 < 0x8000)" ( (binary_expression "param_2 < 0x8000" identifier < number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" * (cast_expression "(undefined4 *)(param_1 + 0x1a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a8)" ( (binary_expression "param_1 + 0x1a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0003bfa0();" (call_expression "FUN_0003bfa0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" else (if_statement "if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x128) != 0)" ( (binary_expression "*(int *)(param_1 + 0x128) != 0" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00046730();\n  }" { (expression_statement "FUN_00046730();" (call_expression "FUN_00046730()" identifier (argument_list "()" ( ))) ;) })))) (expression_statement "FUN_00039bf0();" (call_expression "FUN_00039bf0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 { (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 IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }) (else_clause else (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 (call_expression IDENT (argument_list ( ))) ;) })))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000467d0(int param_1,int param_2)\n\n{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000467d0(int param_1,int param_2)" (identifier "FUN_000467d0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }\n  FUN_00039bf0();\n  return;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x198) == 1) {\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }\n  else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x198) == 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x198) == 1" (pointer_expression "*(int *)(param_1 + 0x198)" (* "*") (cast_expression "(int *)(param_1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }\n  }" ({ "{") (if_statement "if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000))" (( "(") (binary_expression "(*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)" (parenthesized_expression "(*(int *)(param_1 + 0x1a8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1a8) != 0" (pointer_expression "*(int *)(param_1 + 0x1a8)" (* "*") (cast_expression "(int *)(param_1 + 0x1a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a8)" (( "(") (binary_expression "param_1 + 0x1a8" (identifier "param_1") (+ "+") (number_literal "0x1a8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < 0x8000)" (( "(") (binary_expression "param_2 < 0x8000" (identifier "param_2") (< "<") (number_literal "0x8000")) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1a8) = 0;\n      FUN_0003bfa0();\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x1a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1a8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a8)" (( "(") (binary_expression "param_1 + 0x1a8" (identifier "param_1") (+ "+") (number_literal "0x1a8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0003bfa0();" (call_expression "FUN_0003bfa0()" (identifier "FUN_0003bfa0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x128) != 0) {\n    FUN_00046730();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x128) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x128) != 0" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00046730();\n  }" ({ "{") (expression_statement "FUN_00046730();" (call_expression "FUN_00046730()" (identifier "FUN_00046730") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))) (expression_statement "FUN_00039bf0();" (call_expression "FUN_00039bf0()" (identifier "FUN_00039bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(void *handle,int var_1)

{
  if (*(int *)((int)handle + 0x198) == 1) {
    if ((*(int *)((int)handle + 0x1a8) != 0) && (var_1 < 0x8000)) {
      *(type_1 *)((int)handle + 0x1a8) = 0;
      var_2((type_2)handle,-1);
    }
  }
  else if (*(type_3 **)((int)handle + 0x128) != (type_3 *)0x0) {
    var_3(*(type_3 **)((int)handle + 0x128),var_1);
  }
  var_4((type_2)handle);
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (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 (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: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) alternative: (else_clause (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 (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  if (*(int *)(param_1 + 0x198) == 1) {
    if ((*(int *)(param_1 + 0x1a8) != 0) && (param_2 < 0x8000)) {
      *(undefined4 *)(param_1 + 0x1a8) = 0;
      FUN_0003bfa0();
    }
  }
  else if (*(int *)(param_1 + 0x128) != 0) {
    FUN_00046730();
  }
  FUN_00039bf0();
  return;
}

