
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

void zlib_literal(LZ77Context *ectx,uchar c)

{
  Outbuf *out;
  
  out = (Outbuf *)ectx->userdata;
  if (out->comp_disabled != 0) {
    outbits(out,(uint)c,8);
    return;
  }
  if (c < 0x90) {
    outbits(out,(uint)""[c + 0x30],8);
    return;
  }
  outbits(out,(uint)""[c] * 2 + 1,9);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void FUN_000625b0(int param_1,byte param_2)

{
  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {
    FUN_000622e0();
    return;
  }
  if (param_2 < 0x90) {
    FUN_000622e0();
    return;
  }
  FUN_000622e0();
  return;
}


CALL 0x0001b8ab
ADD ECX,0x467bb
PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x4]
MOV EBX,dword ptr [EAX + 0x18]
TEST EBX,EBX
JNZ 0x00062610
MOVZX EBX,DL
CMP DL,0x8f
JA 0x000625f0
MOVZX EDX,byte ptr [ECX + EBX*0x1 + 0xfffd5ea0]
MOV ECX,0x8
POP EBX
JMP 0x000622e0
MOVZX EDX,byte ptr [ECX + EBX*0x1 + 0xfffd5e70]
MOV ECX,0x9
POP EBX
LEA EDX,[EDX + EDX*0x1 + 0x1]
JMP 0x000622e0
MOVZX EDX,DL
MOV ECX,0x8
POP EBX
JMP 0x000622e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_000625b0(int param_1,byte param_2)\n\n{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}\n\n" comment (function_definition "void FUN_000625b0(int param_1,byte param_2)\n\n{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}" primitive_type (function_declarator "FUN_000625b0(int param_1,byte param_2)" identifier (parameter_list "(int param_1,byte param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}" { (if_statement "if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 4) + 0x18) != 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 4) + 0x18) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 4) + 0x18)" * (cast_expression "(int *)(*(int *)(param_1 + 4) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x18)" ( (binary_expression "*(int *)(param_1 + 4) + 0x18" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_000622e0();\n    return;\n  }" { (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x90)" ( (binary_expression "param_2 < 0x90" identifier < number_literal) )) (compound_statement "{\n    FUN_000622e0();\n    return;\n  }" { (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nvoid zlib_literal(LZ77Context *ectx,uchar c)\n\n{\n  Outbuf *out;\n  \n  out = (Outbuf *)ectx->userdata;\n  if (out->comp_disabled != 0) {\n    outbits(out,(uint)c,8);\n    return;\n  }\n  if (c < 0x90) {\n    outbits(out,(uint)""[c + 0x30],8);\n    return;\n  }\n  outbits(out,(uint)""[c] * 2 + 1,9);\n  return;\n}\n\n" comment comment (function_definition "void zlib_literal(LZ77Context *ectx,uchar c)\n\n{\n  Outbuf *out;\n  \n  out = (Outbuf *)ectx->userdata;\n  if (out->comp_disabled != 0) {\n    outbits(out,(uint)c,8);\n    return;\n  }\n  if (c < 0x90) {\n    outbits(out,(uint)""[c + 0x30],8);\n    return;\n  }\n  outbits(out,(uint)""[c] * 2 + 1,9);\n  return;\n}" primitive_type (function_declarator "zlib_literal(LZ77Context *ectx,uchar c)" identifier (parameter_list "(LZ77Context *ectx,uchar c)" ( (parameter_declaration "LZ77Context *ectx" type_identifier (pointer_declarator "*ectx" * identifier)) , (parameter_declaration "uchar c" type_identifier identifier) ))) (compound_statement "{\n  Outbuf *out;\n  \n  out = (Outbuf *)ectx->userdata;\n  if (out->comp_disabled != 0) {\n    outbits(out,(uint)c,8);\n    return;\n  }\n  if (c < 0x90) {\n    outbits(out,(uint)""[c + 0x30],8);\n    return;\n  }\n  outbits(out,(uint)""[c] * 2 + 1,9);\n  return;\n}" { (declaration "Outbuf *out;" type_identifier (pointer_declarator "*out" * identifier) ;) (expression_statement "out = (Outbuf *)ectx->userdata;" (assignment_expression "out = (Outbuf *)ectx->userdata" identifier = (cast_expression "(Outbuf *)ectx->userdata" ( (type_descriptor "Outbuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "ectx->userdata" identifier -> field_identifier))) ;) (if_statement "if (out->comp_disabled != 0) {\n    outbits(out,(uint)c,8);\n    return;\n  }" if (parenthesized_expression "(out->comp_disabled != 0)" ( (binary_expression "out->comp_disabled != 0" (field_expression "out->comp_disabled" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    outbits(out,(uint)c,8);\n    return;\n  }" { (expression_statement "outbits(out,(uint)c,8);" (call_expression "outbits(out,(uint)c,8)" identifier (argument_list "(out,(uint)c,8)" ( identifier , (cast_expression "(uint)c" ( (type_descriptor "uint" type_identifier) ) identifier) , number_literal ))) ;) (return_statement "return;" return ;) })) (if_statement "if (c < 0x90) {\n    outbits(out,(uint)""[c + 0x30],8);\n    return;\n  }" if (parenthesized_expression "(c < 0x90)" ( (binary_expression "c < 0x90" identifier < number_literal) )) (compound_statement "{\n    outbits(out,(uint)""[c + 0x30],8);\n    return;\n  }" { (expression_statement "outbits(out,(uint)""[c + 0x30],8);" (call_expression "outbits(out,(uint)""[c + 0x30],8)" identifier (argument_list "(out,(uint)""[c + 0x30],8)" ( identifier , (cast_expression "(uint)""[c + 0x30]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression """[c + 0x30]" (string_literal """" " ") [ (binary_expression "c + 0x30" identifier + number_literal) ])) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "outbits(out,(uint)""[c] * 2 + 1,9);" (call_expression "outbits(out,(uint)""[c] * 2 + 1,9)" identifier (argument_list "(out,(uint)""[c] * 2 + 1,9)" ( identifier , (binary_expression "(uint)""[c] * 2 + 1" (binary_expression "(uint)""[c] * 2" (cast_expression "(uint)""[c]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression """[c]" (string_literal """" " ") [ identifier ])) * number_literal) + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000625b0(int param_1,byte param_2)\n\n{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}\n\n" (function_definition "void FUN_000625b0(int param_1,byte param_2)\n\n{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}" primitive_type (function_declarator "FUN_000625b0(int param_1,byte param_2)" identifier (parameter_list "(int param_1,byte param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}" { (if_statement "if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 4) + 0x18) != 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 4) + 0x18) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 4) + 0x18)" * (cast_expression "(int *)(*(int *)(param_1 + 4) + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0x18)" ( (binary_expression "*(int *)(param_1 + 4) + 0x18" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_000622e0();\n    return;\n  }" { (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x90)" ( (binary_expression "param_2 < 0x90" identifier < number_literal) )) (compound_statement "{\n    FUN_000622e0();\n    return;\n  }" { (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000625b0(int param_1,byte param_2)\n\n{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000625b0(int param_1,byte param_2)" (identifier "FUN_000625b0") (parameter_list "(int param_1,byte param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }\n  if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }\n  FUN_000622e0();\n  return;\n}" ({ "{") (if_statement "if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {\n    FUN_000622e0();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 4) + 0x18) != 0)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 4) + 0x18) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 4) + 0x18)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 4) + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0x18)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0x18" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000622e0();\n    return;\n  }" ({ "{") (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" (identifier "FUN_000622e0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 < 0x90) {\n    FUN_000622e0();\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x90)" (( "(") (binary_expression "param_2 < 0x90" (identifier "param_2") (< "<") (number_literal "0x90")) () ")")) (compound_statement "{\n    FUN_000622e0();\n    return;\n  }" ({ "{") (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" (identifier "FUN_000622e0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000622e0();" (call_expression "FUN_000622e0()" (identifier "FUN_000622e0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *ectx,type_2 var_2)

{
  type_3 *out;
  
  out = (type_3 *)ectx->userdata;
  if (out->comp_disabled != 0) {
    var_1(out,(type_4)var_2,8);
    return;
  }
  if (var_2 < 0x90) {
    var_1(out,(type_4)""[var_2 + 0x30],8);
    return;
  }
  var_1(out,(type_4)""[var_2] * 2 + 1,9);
  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)))) 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: (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(int param_1,byte param_2)

{
  if (*(int *)(*(int *)(param_1 + 4) + 0x18) != 0) {
    FUN_000622e0();
    return;
  }
  if (param_2 < 0x90) {
    FUN_000622e0();
    return;
  }
  FUN_000622e0();
  return;
}

