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

void ccp_decrypt_length(void *vctx,uchar *blk,int len,ulong seq)

{
  int in_GS_OFFSET;
  uchar auStack_28 [4];
  ulong uStack_24;
  int iStack_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x49289;
  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);
  auStack_28[0] = '\0';
  auStack_28[1] = '\0';
  auStack_28[2] = '\0';
  auStack_28[3] = '\0';
  uStack_24 = seq;
  chacha20_iv((chacha20 *)vctx,auStack_28);
  chacha20_iv((chacha20 *)((int)vctx + 0x84),auStack_28);
  *(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1;
  smemclr(auStack_28,8);
  chacha20_encrypt((chacha20 *)vctx,blk,len);
  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int in_GS_OFFSET;
  undefined4 uStack_28;
  undefined4 uStack_24;
  int iStack_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x49289;
  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);
  uStack_28 = 0;
  uStack_24 = param_4;
  FUN_00047f00();
  FUN_00047f00();
  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;
  FUN_0001b330(&uStack_28,8);
  FUN_00048e50();
  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}


JMP 0x00049280
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}\n\n" comment (function_definition "void thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" primitive_type (function_declarator "thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 uStack_28;" type_identifier identifier ;) (declaration "undefined4 uStack_24;" type_identifier identifier ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x49289;" (assignment_expression "uStack_14 = 0x49289" identifier = number_literal) ;) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uStack_28 = 0;" (assignment_expression "uStack_28 = 0" identifier = number_literal) ;) (expression_statement "uStack_24 = param_4;" (assignment_expression "uStack_24 = param_4" identifier = identifier) ;) (expression_statement "FUN_00047f00();" (call_expression "FUN_00047f00()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00047f00();" (call_expression "FUN_00047f00()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;" (assignment_expression "*(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1" (pointer_expression "*(int *)(param_1 + 0xb4)" * (cast_expression "(int *)(param_1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xb4) + 1" (pointer_expression "*(int *)(param_1 + 0xb4)" * (cast_expression "(int *)(param_1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_0001b330(&uStack_28,8);" (call_expression "FUN_0001b330(&uStack_28,8)" identifier (argument_list "(&uStack_28,8)" ( (pointer_expression "&uStack_28" & identifier) , number_literal ))) ;) (expression_statement "FUN_00048e50();" (call_expression "FUN_00048e50()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iStack_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iStack_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ccp_decrypt_length(void *vctx,uchar *blk,int len,ulong seq)\n\n{\n  int in_GS_OFFSET;\n  uchar auStack_28 [4];\n  ulong uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  auStack_28[0] = '\0';\n  auStack_28[1] = '\0';\n  auStack_28[2] = '\0';\n  auStack_28[3] = '\0';\n  uStack_24 = seq;\n  chacha20_iv((chacha20 *)vctx,auStack_28);\n  chacha20_iv((chacha20 *)((int)vctx + 0x84),auStack_28);\n  *(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1;\n  smemclr(auStack_28,8);\n  chacha20_encrypt((chacha20 *)vctx,blk,len);\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void ccp_decrypt_length(void *vctx,uchar *blk,int len,ulong seq)\n\n{\n  int in_GS_OFFSET;\n  uchar auStack_28 [4];\n  ulong uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  auStack_28[0] = '\0';\n  auStack_28[1] = '\0';\n  auStack_28[2] = '\0';\n  auStack_28[3] = '\0';\n  uStack_24 = seq;\n  chacha20_iv((chacha20 *)vctx,auStack_28);\n  chacha20_iv((chacha20 *)((int)vctx + 0x84),auStack_28);\n  *(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1;\n  smemclr(auStack_28,8);\n  chacha20_encrypt((chacha20 *)vctx,blk,len);\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "ccp_decrypt_length(void *vctx,uchar *blk,int len,ulong seq)" identifier (parameter_list "(void *vctx,uchar *blk,int len,ulong seq)" ( (parameter_declaration "void *vctx" primitive_type (pointer_declarator "*vctx" * identifier)) , (parameter_declaration "uchar *blk" type_identifier (pointer_declarator "*blk" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "ulong seq" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  uchar auStack_28 [4];\n  ulong uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  auStack_28[0] = '\0';\n  auStack_28[1] = '\0';\n  auStack_28[2] = '\0';\n  auStack_28[3] = '\0';\n  uStack_24 = seq;\n  chacha20_iv((chacha20 *)vctx,auStack_28);\n  chacha20_iv((chacha20 *)((int)vctx + 0x84),auStack_28);\n  *(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1;\n  smemclr(auStack_28,8);\n  chacha20_encrypt((chacha20 *)vctx,blk,len);\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar auStack_28 [4];" type_identifier (array_declarator "auStack_28 [4]" identifier [ number_literal ]) ;) (declaration "ulong uStack_24;" type_identifier identifier ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x49289;" (assignment_expression "uStack_14 = 0x49289" identifier = number_literal) ;) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "auStack_28[0] = '\0';" (assignment_expression "auStack_28[0] = '\0'" (subscript_expression "auStack_28[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "auStack_28[1] = '\0';" (assignment_expression "auStack_28[1] = '\0'" (subscript_expression "auStack_28[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "auStack_28[2] = '\0';" (assignment_expression "auStack_28[2] = '\0'" (subscript_expression "auStack_28[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "auStack_28[3] = '\0';" (assignment_expression "auStack_28[3] = '\0'" (subscript_expression "auStack_28[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uStack_24 = seq;" (assignment_expression "uStack_24 = seq" identifier = identifier) ;) (expression_statement "chacha20_iv((chacha20 *)vctx,auStack_28);" (call_expression "chacha20_iv((chacha20 *)vctx,auStack_28)" identifier (argument_list "((chacha20 *)vctx,auStack_28)" ( (cast_expression "(chacha20 *)vctx" ( (type_descriptor "chacha20 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "chacha20_iv((chacha20 *)((int)vctx + 0x84),auStack_28);" (call_expression "chacha20_iv((chacha20 *)((int)vctx + 0x84),auStack_28)" identifier (argument_list "((chacha20 *)((int)vctx + 0x84),auStack_28)" ( (cast_expression "(chacha20 *)((int)vctx + 0x84)" ( (type_descriptor "chacha20 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 0x84)" ( (binary_expression "(int)vctx + 0x84" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier ))) ;) (expression_statement "*(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1;" (assignment_expression "*(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1" (pointer_expression "*(int *)((int)vctx + 0xb4)" * (cast_expression "(int *)((int)vctx + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 0xb4)" ( (binary_expression "(int)vctx + 0xb4" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)vctx + 0xb4) + 1" (pointer_expression "*(int *)((int)vctx + 0xb4)" * (cast_expression "(int *)((int)vctx + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vctx + 0xb4)" ( (binary_expression "(int)vctx + 0xb4" (cast_expression "(int)vctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "smemclr(auStack_28,8);" (call_expression "smemclr(auStack_28,8)" identifier (argument_list "(auStack_28,8)" ( identifier , number_literal ))) ;) (expression_statement "chacha20_encrypt((chacha20 *)vctx,blk,len);" (call_expression "chacha20_encrypt((chacha20 *)vctx,blk,len)" identifier (argument_list "((chacha20 *)vctx,blk,len)" ( (cast_expression "(chacha20 *)vctx" ( (type_descriptor "chacha20 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (if_statement "if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iStack_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iStack_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}\n\n" (function_definition "void thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" primitive_type (function_declarator "thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 uStack_28;" type_identifier identifier ;) (declaration "undefined4 uStack_24;" type_identifier identifier ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x49289;" (assignment_expression "uStack_14 = 0x49289" identifier = number_literal) ;) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uStack_28 = 0;" (assignment_expression "uStack_28 = 0" identifier = number_literal) ;) (expression_statement "uStack_24 = param_4;" (assignment_expression "uStack_24 = param_4" identifier = identifier) ;) (expression_statement "FUN_00047f00();" (call_expression "FUN_00047f00()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00047f00();" (call_expression "FUN_00047f00()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;" (assignment_expression "*(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1" (pointer_expression "*(int *)(param_1 + 0xb4)" * (cast_expression "(int *)(param_1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xb4) + 1" (pointer_expression "*(int *)(param_1 + 0xb4)" * (cast_expression "(int *)(param_1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "FUN_0001b330(&uStack_28,8);" (call_expression "FUN_0001b330(&uStack_28,8)" identifier (argument_list "(&uStack_28,8)" ( (pointer_expression "&uStack_28" & identifier) , number_literal ))) ;) (expression_statement "FUN_00048e50();" (call_expression "FUN_00048e50()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iStack_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iStack_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_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 ( (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" (primitive_type "void") (function_declarator "thunk_FUN_00049280(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "thunk_FUN_00049280") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 uStack_28;\n  undefined4 uStack_24;\n  int iStack_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x49289;\n  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uStack_28 = 0;\n  uStack_24 = param_4;\n  FUN_00047f00();\n  FUN_00047f00();\n  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;\n  FUN_0001b330(&uStack_28,8);\n  FUN_00048e50();\n  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 uStack_28;" (type_identifier "undefined4") (identifier "uStack_28") (; ";")) (declaration "undefined4 uStack_24;" (type_identifier "undefined4") (identifier "uStack_24") (; ";")) (declaration "int iStack_20;" (primitive_type "int") (identifier "iStack_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x49289;" (assignment_expression "uStack_14 = 0x49289" (identifier "uStack_14") (= "=") (number_literal "0x49289")) (; ";")) (expression_statement "iStack_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iStack_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iStack_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uStack_28 = 0;" (assignment_expression "uStack_28 = 0" (identifier "uStack_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_24 = param_4;" (assignment_expression "uStack_24 = param_4" (identifier "uStack_24") (= "=") (identifier "param_4")) (; ";")) (expression_statement "FUN_00047f00();" (call_expression "FUN_00047f00()" (identifier "FUN_00047f00") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00047f00();" (call_expression "FUN_00047f00()" (identifier "FUN_00047f00") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;" (assignment_expression "*(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1" (pointer_expression "*(int *)(param_1 + 0xb4)" (* "*") (cast_expression "(int *)(param_1 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0xb4) + 1" (pointer_expression "*(int *)(param_1 + 0xb4)" (* "*") (cast_expression "(int *)(param_1 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_0001b330(&uStack_28,8);" (call_expression "FUN_0001b330(&uStack_28,8)" (identifier "FUN_0001b330") (argument_list "(&uStack_28,8)" (( "(") (pointer_expression "&uStack_28" (& "&") (identifier "uStack_28")) (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "FUN_00048e50();" (call_expression "FUN_00048e50()" (identifier "FUN_00048e50") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iStack_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iStack_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iStack_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(void *vctx,type_1 *blk,int len,type_2 seq)

{
  int var_1;
  type_1 auStack_28 [4];
  type_2 uStack_24;
  int var_5;
  type_3 uStack_14;
  
  uStack_14 = 0x49289;
  var_5 = *(int *)(var_1 + 0x14);
  auStack_28[0] = '\0';
  auStack_28[1] = '\0';
  auStack_28[2] = '\0';
  auStack_28[3] = '\0';
  uStack_24 = seq;
  var_2((type_4 *)vctx,auStack_28);
  var_2((type_4 *)((int)vctx + 0x84),auStack_28);
  *(int *)((int)vctx + 0xb4) = *(int *)((int)vctx + 0xb4) + 1;
  var_3(auStack_28,8);
  var_4((type_4 *)vctx,blk,len);
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (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)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (return_statement))) (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(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int in_GS_OFFSET;
  undefined4 uStack_28;
  undefined4 uStack_24;
  int iStack_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x49289;
  iStack_20 = *(int *)(in_GS_OFFSET + 0x14);
  uStack_28 = 0;
  uStack_24 = param_4;
  FUN_00047f00();
  FUN_00047f00();
  *(int *)(param_1 + 0xb4) = *(int *)(param_1 + 0xb4) + 1;
  FUN_0001b330(&uStack_28,8);
  FUN_00048e50();
  if (iStack_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}

