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

void zlib_decompress_cleanup(void *handle)

{
                    /* WARNING: Load size is inaccurate */
  if ((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)) {
    zlib_freetable((zlib_table **)((int)handle + 8));
  }
  if ((*(int *)((int)handle + 0xc) != 0) &&
     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))) {
    zlib_freetable((zlib_table **)((int)handle + 0xc));
  }
  if (*(int *)((int)handle + 0x10) != 0) {
    zlib_freetable((zlib_table **)((int)handle + 0x10));
  }
  zlib_freetable((zlib_table **)handle);
  zlib_freetable((zlib_table **)((int)handle + 4));
  safefree(handle);
  return;
}



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

void FUN_00061760(int *param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0x61767;
  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {
    FUN_000616f0(0x61767);
  }
  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {
    FUN_000616f0(uVar1);
  }
  if (param_1[4] != 0) {
    FUN_000616f0(uVar1);
  }
  FUN_000616f0(uVar1);
  FUN_000616f0();
  FUN_0001b250(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x47609
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x00061787
CMP EAX,dword ptr [ESI]
JZ 0x00061787
LEA EAX,[ESI + 0x8]
CALL 0x000616f0
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0006179b
CMP EAX,dword ptr [ESI + 0x4]
JZ 0x0006179b
LEA EAX,[ESI + 0xc]
CALL 0x000616f0
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x000617aa
LEA EAX,[ESI + 0x10]
CALL 0x000616f0
MOV EAX,ESI
CALL 0x000616f0
LEA EAX,[ESI + 0x4]
CALL 0x000616f0
SUB ESP,0xc
PUSH ESI
CALL 0x0001b250
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00061760(int *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00061760(int *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00061760(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0x61767;" (assignment_expression "uVar1 = 0x61767" identifier = number_literal) ;) (if_statement "if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }" if (parenthesized_expression "((param_1[2] != 0) && (param_1[2] != *param_1))" ( (binary_expression "(param_1[2] != 0) && (param_1[2] != *param_1)" (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[2] != *param_1)" ( (binary_expression "param_1[2] != *param_1" (subscript_expression "param_1[2]" identifier [ number_literal ]) != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n    FUN_000616f0(0x61767);\n  }" { (expression_statement "FUN_000616f0(0x61767);" (call_expression "FUN_000616f0(0x61767)" identifier (argument_list "(0x61767)" ( number_literal ))) ;) })) (if_statement "if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }" if (parenthesized_expression "((param_1[3] != 0) && (param_1[3] != param_1[1]))" ( (binary_expression "(param_1[3] != 0) && (param_1[3] != param_1[1])" (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[3] != param_1[1])" ( (binary_expression "param_1[3] != param_1[1]" (subscript_expression "param_1[3]" identifier [ number_literal ]) != (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n    FUN_000616f0(uVar1);\n  }" { (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) (if_statement "if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }" if (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000616f0(uVar1);\n  }" { (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "FUN_000616f0();" (call_expression "FUN_000616f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001b250(param_1);" (call_expression "FUN_0001b250(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid zlib_decompress_cleanup(void *handle)\n\n{\n                    /* WARNING: Load size is inaccurate */\n  if ((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)) {\n    zlib_freetable((zlib_table **)((int)handle + 8));\n  }\n  if ((*(int *)((int)handle + 0xc) != 0) &&\n     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))) {\n    zlib_freetable((zlib_table **)((int)handle + 0xc));\n  }\n  if (*(int *)((int)handle + 0x10) != 0) {\n    zlib_freetable((zlib_table **)((int)handle + 0x10));\n  }\n  zlib_freetable((zlib_table **)handle);\n  zlib_freetable((zlib_table **)((int)handle + 4));\n  safefree(handle);\n  return;\n}\n\n" comment comment (function_definition "void zlib_decompress_cleanup(void *handle)\n\n{\n                    /* WARNING: Load size is inaccurate */\n  if ((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)) {\n    zlib_freetable((zlib_table **)((int)handle + 8));\n  }\n  if ((*(int *)((int)handle + 0xc) != 0) &&\n     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))) {\n    zlib_freetable((zlib_table **)((int)handle + 0xc));\n  }\n  if (*(int *)((int)handle + 0x10) != 0) {\n    zlib_freetable((zlib_table **)((int)handle + 0x10));\n  }\n  zlib_freetable((zlib_table **)handle);\n  zlib_freetable((zlib_table **)((int)handle + 4));\n  safefree(handle);\n  return;\n}" primitive_type (function_declarator "zlib_decompress_cleanup(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n  if ((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)) {\n    zlib_freetable((zlib_table **)((int)handle + 8));\n  }\n  if ((*(int *)((int)handle + 0xc) != 0) &&\n     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))) {\n    zlib_freetable((zlib_table **)((int)handle + 0xc));\n  }\n  if (*(int *)((int)handle + 0x10) != 0) {\n    zlib_freetable((zlib_table **)((int)handle + 0x10));\n  }\n  zlib_freetable((zlib_table **)handle);\n  zlib_freetable((zlib_table **)((int)handle + 4));\n  safefree(handle);\n  return;\n}" { comment (if_statement "if ((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)) {\n    zlib_freetable((zlib_table **)((int)handle + 8));\n  }" if (parenthesized_expression "((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle))" ( (binary_expression "(*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)" (parenthesized_expression "(*(int *)((int)handle + 8) != 0)" ( (binary_expression "*(int *)((int)handle + 8) != 0" (pointer_expression "*(int *)((int)handle + 8)" * (cast_expression "(int *)((int)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)((int)handle + 8) != *handle)" ( (binary_expression "*(int *)((int)handle + 8) != *handle" (pointer_expression "*(int *)((int)handle + 8)" * (cast_expression "(int *)((int)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (pointer_expression "*handle" * identifier)) ))) )) (compound_statement "{\n    zlib_freetable((zlib_table **)((int)handle + 8));\n  }" { (expression_statement "zlib_freetable((zlib_table **)((int)handle + 8));" (call_expression "zlib_freetable((zlib_table **)((int)handle + 8))" identifier (argument_list "((zlib_table **)((int)handle + 8))" ( (cast_expression "(zlib_table **)((int)handle + 8)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) })) (if_statement "if ((*(int *)((int)handle + 0xc) != 0) &&\n     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))) {\n    zlib_freetable((zlib_table **)((int)handle + 0xc));\n  }" if (parenthesized_expression "((*(int *)((int)handle + 0xc) != 0) &&\n     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4)))" ( (binary_expression "(*(int *)((int)handle + 0xc) != 0) &&\n     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))" (parenthesized_expression "(*(int *)((int)handle + 0xc) != 0)" ( (binary_expression "*(int *)((int)handle + 0xc) != 0" (pointer_expression "*(int *)((int)handle + 0xc)" * (cast_expression "(int *)((int)handle + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0xc)" ( (binary_expression "(int)handle + 0xc" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))" ( (binary_expression "*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4)" (pointer_expression "*(int *)((int)handle + 0xc)" * (cast_expression "(int *)((int)handle + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0xc)" ( (binary_expression "(int)handle + 0xc" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) )) (compound_statement "{\n    zlib_freetable((zlib_table **)((int)handle + 0xc));\n  }" { (expression_statement "zlib_freetable((zlib_table **)((int)handle + 0xc));" (call_expression "zlib_freetable((zlib_table **)((int)handle + 0xc))" identifier (argument_list "((zlib_table **)((int)handle + 0xc))" ( (cast_expression "(zlib_table **)((int)handle + 0xc)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0xc)" ( (binary_expression "(int)handle + 0xc" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) })) (if_statement "if (*(int *)((int)handle + 0x10) != 0) {\n    zlib_freetable((zlib_table **)((int)handle + 0x10));\n  }" if (parenthesized_expression "(*(int *)((int)handle + 0x10) != 0)" ( (binary_expression "*(int *)((int)handle + 0x10) != 0" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    zlib_freetable((zlib_table **)((int)handle + 0x10));\n  }" { (expression_statement "zlib_freetable((zlib_table **)((int)handle + 0x10));" (call_expression "zlib_freetable((zlib_table **)((int)handle + 0x10))" identifier (argument_list "((zlib_table **)((int)handle + 0x10))" ( (cast_expression "(zlib_table **)((int)handle + 0x10)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) })) (expression_statement "zlib_freetable((zlib_table **)handle);" (call_expression "zlib_freetable((zlib_table **)handle)" identifier (argument_list "((zlib_table **)handle)" ( (cast_expression "(zlib_table **)handle" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) ))) ;) (expression_statement "zlib_freetable((zlib_table **)((int)handle + 4));" (call_expression "zlib_freetable((zlib_table **)((int)handle + 4))" identifier (argument_list "((zlib_table **)((int)handle + 4))" ( (cast_expression "(zlib_table **)((int)handle + 4)" ( (type_descriptor "zlib_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (expression_statement "safefree(handle);" (call_expression "safefree(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00061760(int *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00061760(int *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00061760(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0x61767;" (assignment_expression "uVar1 = 0x61767" identifier = number_literal) ;) (if_statement "if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }" if (parenthesized_expression "((param_1[2] != 0) && (param_1[2] != *param_1))" ( (binary_expression "(param_1[2] != 0) && (param_1[2] != *param_1)" (parenthesized_expression "(param_1[2] != 0)" ( (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[2] != *param_1)" ( (binary_expression "param_1[2] != *param_1" (subscript_expression "param_1[2]" identifier [ number_literal ]) != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n    FUN_000616f0(0x61767);\n  }" { (expression_statement "FUN_000616f0(0x61767);" (call_expression "FUN_000616f0(0x61767)" identifier (argument_list "(0x61767)" ( number_literal ))) ;) })) (if_statement "if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }" if (parenthesized_expression "((param_1[3] != 0) && (param_1[3] != param_1[1]))" ( (binary_expression "(param_1[3] != 0) && (param_1[3] != param_1[1])" (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[3] != param_1[1])" ( (binary_expression "param_1[3] != param_1[1]" (subscript_expression "param_1[3]" identifier [ number_literal ]) != (subscript_expression "param_1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n    FUN_000616f0(uVar1);\n  }" { (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) (if_statement "if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }" if (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_000616f0(uVar1);\n  }" { (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "FUN_000616f0();" (call_expression "FUN_000616f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001b250(param_1);" (call_expression "FUN_0001b250(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00061760(int *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00061760(int *param_1)" (identifier "FUN_00061760") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0x61767;\n  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }\n  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }\n  if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }\n  FUN_000616f0(uVar1);\n  FUN_000616f0();\n  FUN_0001b250(param_1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0x61767;" (assignment_expression "uVar1 = 0x61767" (identifier "uVar1") (= "=") (number_literal "0x61767")) (; ";")) (if_statement "if ((param_1[2] != 0) && (param_1[2] != *param_1)) {\n    FUN_000616f0(0x61767);\n  }" (if "if") (parenthesized_expression "((param_1[2] != 0) && (param_1[2] != *param_1))" (( "(") (binary_expression "(param_1[2] != 0) && (param_1[2] != *param_1)" (parenthesized_expression "(param_1[2] != 0)" (( "(") (binary_expression "param_1[2] != 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[2] != *param_1)" (( "(") (binary_expression "param_1[2] != *param_1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) () ")")) (compound_statement "{\n    FUN_000616f0(0x61767);\n  }" ({ "{") (expression_statement "FUN_000616f0(0x61767);" (call_expression "FUN_000616f0(0x61767)" (identifier "FUN_000616f0") (argument_list "(0x61767)" (( "(") (number_literal "0x61767") () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {\n    FUN_000616f0(uVar1);\n  }" (if "if") (parenthesized_expression "((param_1[3] != 0) && (param_1[3] != param_1[1]))" (( "(") (binary_expression "(param_1[3] != 0) && (param_1[3] != param_1[1])" (parenthesized_expression "(param_1[3] != 0)" (( "(") (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[3] != param_1[1])" (( "(") (binary_expression "param_1[3] != param_1[1]" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (compound_statement "{\n    FUN_000616f0(uVar1);\n  }" ({ "{") (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" (identifier "FUN_000616f0") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[4] != 0) {\n    FUN_000616f0(uVar1);\n  }" (if "if") (parenthesized_expression "(param_1[4] != 0)" (( "(") (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000616f0(uVar1);\n  }" ({ "{") (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" (identifier "FUN_000616f0") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000616f0(uVar1);" (call_expression "FUN_000616f0(uVar1)" (identifier "FUN_000616f0") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "FUN_000616f0();" (call_expression "FUN_000616f0()" (identifier "FUN_000616f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0001b250(param_1);" (call_expression "FUN_0001b250(param_1)" (identifier "FUN_0001b250") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *handle)

{
                    /* WARNING: Load size is inaccurate */
  if ((*(int *)((int)handle + 8) != 0) && (*(int *)((int)handle + 8) != *handle)) {
    var_1((type_1 **)((int)handle + 8));
  }
  if ((*(int *)((int)handle + 0xc) != 0) &&
     (*(int *)((int)handle + 0xc) != *(int *)((int)handle + 4))) {
    var_1((type_1 **)((int)handle + 0xc));
  }
  if (*(int *)((int)handle + 0x10) != 0) {
    var_1((type_1 **)((int)handle + 0x10));
  }
  var_1((type_1 **)handle);
  var_1((type_1 **)((int)handle + 4));
  var_2(handle);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

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

void MASKED(int *param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0x61767;
  if ((param_1[2] != 0) && (param_1[2] != *param_1)) {
    FUN_000616f0(0x61767);
  }
  if ((param_1[3] != 0) && (param_1[3] != param_1[1])) {
    FUN_000616f0(uVar1);
  }
  if (param_1[4] != 0) {
    FUN_000616f0(uVar1);
  }
  FUN_000616f0(uVar1);
  FUN_000616f0();
  FUN_0001b250(param_1);
  return;
}

