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

void * md5_finish_ctx(md5_ctx *ctx,void *resbuf)

{
  uint uVar1;
  uint uVar2;
  md5_uint32 mVar3;
  md5_uint32 mVar4;
  md5_uint32 mVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  size_t local_34;
  
  uVar1 = ctx->buflen;
  uVar2 = ctx->total[0];
  ctx->total[0] = uVar1 + ctx->total[0];
  if (CARRY4(uVar1,uVar2)) {
    ctx->total[1] = ctx->total[1] + 1;
  }
  if (uVar1 < 0x38) {
    iVar6 = 0x54;
    iVar7 = 0x58;
    local_34 = 0x40;
    __n = 0x38 - uVar1;
  }
  else {
    iVar6 = 0x94;
    iVar7 = 0x98;
    local_34 = 0x80;
    __n = 0x78 - uVar1;
  }
  memcpy(ctx->buffer + uVar1,fillbuf,__n);
  uVar1 = ctx->total[0];
  *(uint *)((int)ctx->total + iVar6 + -0x10) = uVar1 * 8;
  *(md5_uint32 *)((int)ctx->total + iVar7 + -0x10) = ctx->total[1] << 3 | uVar1 >> 0x1d;
  md5_process_block(ctx->buffer,local_34,ctx);
  mVar3 = ctx->A;
  mVar4 = ctx->B;
  mVar5 = ctx->C;
  *(md5_uint32 *)((int)resbuf + 0xc) = ctx->D;
  *(md5_uint32 *)resbuf = mVar3;
  *(md5_uint32 *)((int)resbuf + 4) = mVar4;
  *(md5_uint32 *)((int)resbuf + 8) = mVar5;
  return resbuf;
}



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

undefined4 * FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  undefined4 local_34;
  
  uVar1 = param_1[6];
  uVar2 = param_1[4];
  param_1[4] = uVar1 + param_1[4];
  if (CARRY4(uVar1,uVar2)) {
    param_1[5] = param_1[5] + 1;
  }
  if (uVar1 < 0x38) {
    iVar6 = 0x54;
    iVar7 = 0x58;
    local_34 = 0x40;
    __n = 0x38 - uVar1;
  }
  else {
    iVar6 = 0x94;
    iVar7 = 0x98;
    local_34 = 0x80;
    __n = 0x78 - uVar1;
  }
  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);
  uVar1 = param_1[4];
  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;
  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;
  FUN_001a4380(param_1 + 7,local_34,param_1);
  uVar3 = *param_1;
  uVar4 = param_1[1];
  uVar5 = param_1[2];
  param_2[3] = param_1[3];
  *param_2 = uVar3;
  param_2[1] = uVar4;
  param_2[2] = uVar5;
  return param_2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x19a517
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESI + 0x18]
MOV EDX,EAX
ADD EDX,dword ptr [ESI + 0x10]
MOV dword ptr [ESI + 0x10],EDX
JNC 0x001a4b0b
ADD dword ptr [ESI + 0x14],0x1
CMP EAX,0x37
JBE 0x001a4ba0
MOV ECX,0x78
MOV EDX,0x94
MOV EBP,0x98
MOV dword ptr [ESP + 0x8],0x80
SUB ECX,EAX
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
LEA EAX,[ESI + EAX*0x1 + 0x1c]
PUSH ECX
LEA ECX,[EBX + 0xfff2bde0]
PUSH ECX
PUSH EAX
CALL 0x000285c0
MOV ECX,dword ptr [ESI + 0x10]
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0xc
LEA EAX,[ECX*0x8 + 0x0]
SHR ECX,0x1d
MOV dword ptr [ESI + EDX*0x1],EAX
MOV EAX,dword ptr [ESI + 0x14]
SHL EAX,0x3
OR EAX,ECX
MOV dword ptr [ESI + EBP*0x1],EAX
LEA EAX,[ESI + 0x1c]
PUSH ESI
PUSH dword ptr [ESP + 0x10]
PUSH EAX
CALL 0x001a4380
MOV EAX,dword ptr [ESI + 0xc]
MOV EBX,dword ptr [ESI]
MOV ECX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [ESI + 0x8]
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,EDI
MOV dword ptr [EDI],EBX
MOV dword ptr [EDI + 0x4],ECX
MOV dword ptr [EDI + 0x8],EDX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,0x38
MOV EDX,0x54
MOV EBP,0x58
MOV dword ptr [ESP + 0x8],0x40
SUB ECX,EAX
JMP 0x001a4b2d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}\n\n" comment (function_definition "undefined4 * FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}" type_identifier (pointer_declarator "* FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)" * (function_declarator "FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (expression_statement "uVar1 = param_1[6];" (assignment_expression "uVar1 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[4] = uVar1 + param_1[4];" (assignment_expression "param_1[4] = uVar1 + param_1[4]" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "uVar1 + param_1[4]" identifier + (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }" if (parenthesized_expression "(CARRY4(uVar1,uVar2))" ( (call_expression "CARRY4(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) )) (compound_statement "{\n    param_1[5] = param_1[5] + 1;\n  }" { (expression_statement "param_1[5] = param_1[5] + 1;" (assignment_expression "param_1[5] = param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal)) ;) })) (if_statement "if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" if (parenthesized_expression "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }" { (expression_statement "iVar6 = 0x54;" (assignment_expression "iVar6 = 0x54" identifier = number_literal) ;) (expression_statement "iVar7 = 0x58;" (assignment_expression "iVar7 = 0x58" identifier = number_literal) ;) (expression_statement "local_34 = 0x40;" (assignment_expression "local_34 = 0x40" identifier = number_literal) ;) (expression_statement "__n = 0x38 - uVar1;" (assignment_expression "__n = 0x38 - uVar1" identifier = (binary_expression "0x38 - uVar1" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" else (compound_statement "{\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" { (expression_statement "iVar6 = 0x94;" (assignment_expression "iVar6 = 0x94" identifier = number_literal) ;) (expression_statement "iVar7 = 0x98;" (assignment_expression "iVar7 = 0x98" identifier = number_literal) ;) (expression_statement "local_34 = 0x80;" (assignment_expression "local_34 = 0x80" identifier = number_literal) ;) (expression_statement "__n = 0x78 - uVar1;" (assignment_expression "__n = 0x78 - uVar1" identifier = (binary_expression "0x78 - uVar1" number_literal - identifier)) ;) }))) (expression_statement "memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);" (call_expression "memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n)" identifier (argument_list "((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n)" ( (cast_expression "(void *)((int)param_1 + uVar1 + 0x1c)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + uVar1 + 0x1c)" ( (binary_expression "(int)param_1 + uVar1 + 0x1c" (binary_expression "(int)param_1 + uVar1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , (pointer_expression "&DAT_0026ade0" & identifier) , identifier ))) ;) (expression_statement "uVar1 = param_1[4];" (assignment_expression "uVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)((int)param_1 + iVar6) = uVar1 * 8;" (assignment_expression "*(uint *)((int)param_1 + iVar6) = uVar1 * 8" (pointer_expression "*(uint *)((int)param_1 + iVar6)" * (cast_expression "(uint *)((int)param_1 + iVar6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar6)" ( (binary_expression "(int)param_1 + iVar6" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "uVar1 * 8" identifier * number_literal)) ;) (expression_statement "*(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;" (assignment_expression "*(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d" (pointer_expression "*(uint *)((int)param_1 + iVar7)" * (cast_expression "(uint *)((int)param_1 + iVar7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar7)" ( (binary_expression "(int)param_1 + iVar7" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "param_1[5] << 3 | uVar1 >> 0x1d" (binary_expression "param_1[5] << 3" (subscript_expression "param_1[5]" identifier [ number_literal ]) << number_literal) | (binary_expression "uVar1 >> 0x1d" identifier >> number_literal))) ;) (expression_statement "FUN_001a4380(param_1 + 7,local_34,param_1);" (call_expression "FUN_001a4380(param_1 + 7,local_34,param_1)" identifier (argument_list "(param_1 + 7,local_34,param_1)" ( (binary_expression "param_1 + 7" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[3] = param_1[3];" (assignment_expression "param_2[3] = param_1[3]" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uVar4;" (assignment_expression "param_2[1] = uVar4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = uVar5;" (assignment_expression "param_2[2] = uVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * md5_finish_ctx(md5_ctx *ctx,void *resbuf)\n\n{\n  uint uVar1;\n  uint uVar2;\n  md5_uint32 mVar3;\n  md5_uint32 mVar4;\n  md5_uint32 mVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  size_t local_34;\n  \n  uVar1 = ctx->buflen;\n  uVar2 = ctx->total[0];\n  ctx->total[0] = uVar1 + ctx->total[0];\n  if (CARRY4(uVar1,uVar2)) {\n    ctx->total[1] = ctx->total[1] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy(ctx->buffer + uVar1,fillbuf,__n);\n  uVar1 = ctx->total[0];\n  *(uint *)((int)ctx->total + iVar6 + -0x10) = uVar1 * 8;\n  *(md5_uint32 *)((int)ctx->total + iVar7 + -0x10) = ctx->total[1] << 3 | uVar1 >> 0x1d;\n  md5_process_block(ctx->buffer,local_34,ctx);\n  mVar3 = ctx->A;\n  mVar4 = ctx->B;\n  mVar5 = ctx->C;\n  *(md5_uint32 *)((int)resbuf + 0xc) = ctx->D;\n  *(md5_uint32 *)resbuf = mVar3;\n  *(md5_uint32 *)((int)resbuf + 4) = mVar4;\n  *(md5_uint32 *)((int)resbuf + 8) = mVar5;\n  return resbuf;\n}\n\n" comment comment (function_definition "void * md5_finish_ctx(md5_ctx *ctx,void *resbuf)\n\n{\n  uint uVar1;\n  uint uVar2;\n  md5_uint32 mVar3;\n  md5_uint32 mVar4;\n  md5_uint32 mVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  size_t local_34;\n  \n  uVar1 = ctx->buflen;\n  uVar2 = ctx->total[0];\n  ctx->total[0] = uVar1 + ctx->total[0];\n  if (CARRY4(uVar1,uVar2)) {\n    ctx->total[1] = ctx->total[1] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy(ctx->buffer + uVar1,fillbuf,__n);\n  uVar1 = ctx->total[0];\n  *(uint *)((int)ctx->total + iVar6 + -0x10) = uVar1 * 8;\n  *(md5_uint32 *)((int)ctx->total + iVar7 + -0x10) = ctx->total[1] << 3 | uVar1 >> 0x1d;\n  md5_process_block(ctx->buffer,local_34,ctx);\n  mVar3 = ctx->A;\n  mVar4 = ctx->B;\n  mVar5 = ctx->C;\n  *(md5_uint32 *)((int)resbuf + 0xc) = ctx->D;\n  *(md5_uint32 *)resbuf = mVar3;\n  *(md5_uint32 *)((int)resbuf + 4) = mVar4;\n  *(md5_uint32 *)((int)resbuf + 8) = mVar5;\n  return resbuf;\n}" primitive_type (pointer_declarator "* md5_finish_ctx(md5_ctx *ctx,void *resbuf)" * (function_declarator "md5_finish_ctx(md5_ctx *ctx,void *resbuf)" identifier (parameter_list "(md5_ctx *ctx,void *resbuf)" ( (parameter_declaration "md5_ctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "void *resbuf" primitive_type (pointer_declarator "*resbuf" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  md5_uint32 mVar3;\n  md5_uint32 mVar4;\n  md5_uint32 mVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  size_t local_34;\n  \n  uVar1 = ctx->buflen;\n  uVar2 = ctx->total[0];\n  ctx->total[0] = uVar1 + ctx->total[0];\n  if (CARRY4(uVar1,uVar2)) {\n    ctx->total[1] = ctx->total[1] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy(ctx->buffer + uVar1,fillbuf,__n);\n  uVar1 = ctx->total[0];\n  *(uint *)((int)ctx->total + iVar6 + -0x10) = uVar1 * 8;\n  *(md5_uint32 *)((int)ctx->total + iVar7 + -0x10) = ctx->total[1] << 3 | uVar1 >> 0x1d;\n  md5_process_block(ctx->buffer,local_34,ctx);\n  mVar3 = ctx->A;\n  mVar4 = ctx->B;\n  mVar5 = ctx->C;\n  *(md5_uint32 *)((int)resbuf + 0xc) = ctx->D;\n  *(md5_uint32 *)resbuf = mVar3;\n  *(md5_uint32 *)((int)resbuf + 4) = mVar4;\n  *(md5_uint32 *)((int)resbuf + 8) = mVar5;\n  return resbuf;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "md5_uint32 mVar3;" type_identifier identifier ;) (declaration "md5_uint32 mVar4;" type_identifier identifier ;) (declaration "md5_uint32 mVar5;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "size_t local_34;" primitive_type identifier ;) (expression_statement "uVar1 = ctx->buflen;" (assignment_expression "uVar1 = ctx->buflen" identifier = (field_expression "ctx->buflen" identifier -> field_identifier)) ;) (expression_statement "uVar2 = ctx->total[0];" (assignment_expression "uVar2 = ctx->total[0]" identifier = (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "ctx->total[0] = uVar1 + ctx->total[0];" (assignment_expression "ctx->total[0] = uVar1 + ctx->total[0]" (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]) = (binary_expression "uVar1 + ctx->total[0]" identifier + (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]))) ;) (if_statement "if (CARRY4(uVar1,uVar2)) {\n    ctx->total[1] = ctx->total[1] + 1;\n  }" if (parenthesized_expression "(CARRY4(uVar1,uVar2))" ( (call_expression "CARRY4(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) )) (compound_statement "{\n    ctx->total[1] = ctx->total[1] + 1;\n  }" { (expression_statement "ctx->total[1] = ctx->total[1] + 1;" (assignment_expression "ctx->total[1] = ctx->total[1] + 1" (subscript_expression "ctx->total[1]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]) = (binary_expression "ctx->total[1] + 1" (subscript_expression "ctx->total[1]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]) + number_literal)) ;) })) (if_statement "if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" if (parenthesized_expression "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }" { (expression_statement "iVar6 = 0x54;" (assignment_expression "iVar6 = 0x54" identifier = number_literal) ;) (expression_statement "iVar7 = 0x58;" (assignment_expression "iVar7 = 0x58" identifier = number_literal) ;) (expression_statement "local_34 = 0x40;" (assignment_expression "local_34 = 0x40" identifier = number_literal) ;) (expression_statement "__n = 0x38 - uVar1;" (assignment_expression "__n = 0x38 - uVar1" identifier = (binary_expression "0x38 - uVar1" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" else (compound_statement "{\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" { (expression_statement "iVar6 = 0x94;" (assignment_expression "iVar6 = 0x94" identifier = number_literal) ;) (expression_statement "iVar7 = 0x98;" (assignment_expression "iVar7 = 0x98" identifier = number_literal) ;) (expression_statement "local_34 = 0x80;" (assignment_expression "local_34 = 0x80" identifier = number_literal) ;) (expression_statement "__n = 0x78 - uVar1;" (assignment_expression "__n = 0x78 - uVar1" identifier = (binary_expression "0x78 - uVar1" number_literal - identifier)) ;) }))) (expression_statement "memcpy(ctx->buffer + uVar1,fillbuf,__n);" (call_expression "memcpy(ctx->buffer + uVar1,fillbuf,__n)" identifier (argument_list "(ctx->buffer + uVar1,fillbuf,__n)" ( (binary_expression "ctx->buffer + uVar1" (field_expression "ctx->buffer" identifier -> field_identifier) + identifier) , identifier , identifier ))) ;) (expression_statement "uVar1 = ctx->total[0];" (assignment_expression "uVar1 = ctx->total[0]" identifier = (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "*(uint *)((int)ctx->total + iVar6 + -0x10) = uVar1 * 8;" (assignment_expression "*(uint *)((int)ctx->total + iVar6 + -0x10) = uVar1 * 8" (pointer_expression "*(uint *)((int)ctx->total + iVar6 + -0x10)" * (cast_expression "(uint *)((int)ctx->total + iVar6 + -0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx->total + iVar6 + -0x10)" ( (binary_expression "(int)ctx->total + iVar6 + -0x10" (binary_expression "(int)ctx->total + iVar6" (cast_expression "(int)ctx->total" ( (type_descriptor "int" primitive_type) ) (field_expression "ctx->total" identifier -> field_identifier)) + identifier) + number_literal) )))) = (binary_expression "uVar1 * 8" identifier * number_literal)) ;) (expression_statement "*(md5_uint32 *)((int)ctx->total + iVar7 + -0x10) = ctx->total[1] << 3 | uVar1 >> 0x1d;" (assignment_expression "*(md5_uint32 *)((int)ctx->total + iVar7 + -0x10) = ctx->total[1] << 3 | uVar1 >> 0x1d" (pointer_expression "*(md5_uint32 *)((int)ctx->total + iVar7 + -0x10)" * (cast_expression "(md5_uint32 *)((int)ctx->total + iVar7 + -0x10)" ( (type_descriptor "md5_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx->total + iVar7 + -0x10)" ( (binary_expression "(int)ctx->total + iVar7 + -0x10" (binary_expression "(int)ctx->total + iVar7" (cast_expression "(int)ctx->total" ( (type_descriptor "int" primitive_type) ) (field_expression "ctx->total" identifier -> field_identifier)) + identifier) + number_literal) )))) = (binary_expression "ctx->total[1] << 3 | uVar1 >> 0x1d" (binary_expression "ctx->total[1] << 3" (subscript_expression "ctx->total[1]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]) << number_literal) | (binary_expression "uVar1 >> 0x1d" identifier >> number_literal))) ;) (expression_statement "md5_process_block(ctx->buffer,local_34,ctx);" (call_expression "md5_process_block(ctx->buffer,local_34,ctx)" identifier (argument_list "(ctx->buffer,local_34,ctx)" ( (field_expression "ctx->buffer" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "mVar3 = ctx->A;" (assignment_expression "mVar3 = ctx->A" identifier = (field_expression "ctx->A" identifier -> field_identifier)) ;) (expression_statement "mVar4 = ctx->B;" (assignment_expression "mVar4 = ctx->B" identifier = (field_expression "ctx->B" identifier -> field_identifier)) ;) (expression_statement "mVar5 = ctx->C;" (assignment_expression "mVar5 = ctx->C" identifier = (field_expression "ctx->C" identifier -> field_identifier)) ;) (expression_statement "*(md5_uint32 *)((int)resbuf + 0xc) = ctx->D;" (assignment_expression "*(md5_uint32 *)((int)resbuf + 0xc) = ctx->D" (pointer_expression "*(md5_uint32 *)((int)resbuf + 0xc)" * (cast_expression "(md5_uint32 *)((int)resbuf + 0xc)" ( (type_descriptor "md5_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)resbuf + 0xc)" ( (binary_expression "(int)resbuf + 0xc" (cast_expression "(int)resbuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (field_expression "ctx->D" identifier -> field_identifier)) ;) (expression_statement "*(md5_uint32 *)resbuf = mVar3;" (assignment_expression "*(md5_uint32 *)resbuf = mVar3" (pointer_expression "*(md5_uint32 *)resbuf" * (cast_expression "(md5_uint32 *)resbuf" ( (type_descriptor "md5_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(md5_uint32 *)((int)resbuf + 4) = mVar4;" (assignment_expression "*(md5_uint32 *)((int)resbuf + 4) = mVar4" (pointer_expression "*(md5_uint32 *)((int)resbuf + 4)" * (cast_expression "(md5_uint32 *)((int)resbuf + 4)" ( (type_descriptor "md5_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)resbuf + 4)" ( (binary_expression "(int)resbuf + 4" (cast_expression "(int)resbuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(md5_uint32 *)((int)resbuf + 8) = mVar5;" (assignment_expression "*(md5_uint32 *)((int)resbuf + 8) = mVar5" (pointer_expression "*(md5_uint32 *)((int)resbuf + 8)" * (cast_expression "(md5_uint32 *)((int)resbuf + 8)" ( (type_descriptor "md5_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)resbuf + 8)" ( (binary_expression "(int)resbuf + 8" (cast_expression "(int)resbuf" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return resbuf;" return identifier ;) })))
(translation_unit "undefined4 * FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}\n\n" (function_definition "undefined4 * FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}" type_identifier (pointer_declarator "* FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)" * (function_declarator "FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (expression_statement "uVar1 = param_1[6];" (assignment_expression "uVar1 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[4] = uVar1 + param_1[4];" (assignment_expression "param_1[4] = uVar1 + param_1[4]" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "uVar1 + param_1[4]" identifier + (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }" if (parenthesized_expression "(CARRY4(uVar1,uVar2))" ( (call_expression "CARRY4(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) )) (compound_statement "{\n    param_1[5] = param_1[5] + 1;\n  }" { (expression_statement "param_1[5] = param_1[5] + 1;" (assignment_expression "param_1[5] = param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal)) ;) })) (if_statement "if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" if (parenthesized_expression "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }" { (expression_statement "iVar6 = 0x54;" (assignment_expression "iVar6 = 0x54" identifier = number_literal) ;) (expression_statement "iVar7 = 0x58;" (assignment_expression "iVar7 = 0x58" identifier = number_literal) ;) (expression_statement "local_34 = 0x40;" (assignment_expression "local_34 = 0x40" identifier = number_literal) ;) (expression_statement "__n = 0x38 - uVar1;" (assignment_expression "__n = 0x38 - uVar1" identifier = (binary_expression "0x38 - uVar1" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" else (compound_statement "{\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" { (expression_statement "iVar6 = 0x94;" (assignment_expression "iVar6 = 0x94" identifier = number_literal) ;) (expression_statement "iVar7 = 0x98;" (assignment_expression "iVar7 = 0x98" identifier = number_literal) ;) (expression_statement "local_34 = 0x80;" (assignment_expression "local_34 = 0x80" identifier = number_literal) ;) (expression_statement "__n = 0x78 - uVar1;" (assignment_expression "__n = 0x78 - uVar1" identifier = (binary_expression "0x78 - uVar1" number_literal - identifier)) ;) }))) (expression_statement "memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);" (call_expression "memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n)" identifier (argument_list "((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n)" ( (cast_expression "(void *)((int)param_1 + uVar1 + 0x1c)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + uVar1 + 0x1c)" ( (binary_expression "(int)param_1 + uVar1 + 0x1c" (binary_expression "(int)param_1 + uVar1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , (pointer_expression "&DAT_0026ade0" & identifier) , identifier ))) ;) (expression_statement "uVar1 = param_1[4];" (assignment_expression "uVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)((int)param_1 + iVar6) = uVar1 * 8;" (assignment_expression "*(uint *)((int)param_1 + iVar6) = uVar1 * 8" (pointer_expression "*(uint *)((int)param_1 + iVar6)" * (cast_expression "(uint *)((int)param_1 + iVar6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar6)" ( (binary_expression "(int)param_1 + iVar6" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "uVar1 * 8" identifier * number_literal)) ;) (expression_statement "*(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;" (assignment_expression "*(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d" (pointer_expression "*(uint *)((int)param_1 + iVar7)" * (cast_expression "(uint *)((int)param_1 + iVar7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar7)" ( (binary_expression "(int)param_1 + iVar7" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "param_1[5] << 3 | uVar1 >> 0x1d" (binary_expression "param_1[5] << 3" (subscript_expression "param_1[5]" identifier [ number_literal ]) << number_literal) | (binary_expression "uVar1 >> 0x1d" identifier >> number_literal))) ;) (expression_statement "FUN_001a4380(param_1 + 7,local_34,param_1);" (call_expression "FUN_001a4380(param_1 + 7,local_34,param_1)" identifier (argument_list "(param_1 + 7,local_34,param_1)" ( (binary_expression "param_1 + 7" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[3] = param_1[3];" (assignment_expression "param_2[3] = param_1[3]" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uVar4;" (assignment_expression "param_2[1] = uVar4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = uVar5;" (assignment_expression "param_2[2] = uVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (call_expression IDENT (argument_list ( IDENT , IDENT ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) ))) , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)" (* "*") (function_declarator "FUN_001a4ae0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_001a4ae0") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  size_t __n;\n  int iVar6;\n  int iVar7;\n  undefined4 local_34;\n  \n  uVar1 = param_1[6];\n  uVar2 = param_1[4];\n  param_1[4] = uVar1 + param_1[4];\n  if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }\n  if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }\n  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);\n  uVar1 = param_1[4];\n  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;\n  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;\n  FUN_001a4380(param_1 + 7,local_34,param_1);\n  uVar3 = *param_1;\n  uVar4 = param_1[1];\n  uVar5 = param_1[2];\n  param_2[3] = param_1[3];\n  *param_2 = uVar3;\n  param_2[1] = uVar4;\n  param_2[2] = uVar5;\n  return param_2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (expression_statement "uVar1 = param_1[6];" (assignment_expression "uVar1 = param_1[6]" (identifier "uVar1") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[4];" (assignment_expression "uVar2 = param_1[4]" (identifier "uVar2") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_1[4] = uVar1 + param_1[4];" (assignment_expression "param_1[4] = uVar1 + param_1[4]" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "uVar1 + param_1[4]" (identifier "uVar1") (+ "+") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (if_statement "if (CARRY4(uVar1,uVar2)) {\n    param_1[5] = param_1[5] + 1;\n  }" (if "if") (parenthesized_expression "(CARRY4(uVar1,uVar2))" (( "(") (call_expression "CARRY4(uVar1,uVar2)" (identifier "CARRY4") (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")"))) () ")")) (compound_statement "{\n    param_1[5] = param_1[5] + 1;\n  }" ({ "{") (expression_statement "param_1[5] = param_1[5] + 1;" (assignment_expression "param_1[5] = param_1[5] + 1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_1[5] + 1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (uVar1 < 0x38) {\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }\n  else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 < 0x38)" (( "(") (binary_expression "uVar1 < 0x38" (identifier "uVar1") (< "<") (number_literal "0x38")) () ")")) (compound_statement "{\n    iVar6 = 0x54;\n    iVar7 = 0x58;\n    local_34 = 0x40;\n    __n = 0x38 - uVar1;\n  }" ({ "{") (expression_statement "iVar6 = 0x54;" (assignment_expression "iVar6 = 0x54" (identifier "iVar6") (= "=") (number_literal "0x54")) (; ";")) (expression_statement "iVar7 = 0x58;" (assignment_expression "iVar7 = 0x58" (identifier "iVar7") (= "=") (number_literal "0x58")) (; ";")) (expression_statement "local_34 = 0x40;" (assignment_expression "local_34 = 0x40" (identifier "local_34") (= "=") (number_literal "0x40")) (; ";")) (expression_statement "__n = 0x38 - uVar1;" (assignment_expression "__n = 0x38 - uVar1" (identifier "__n") (= "=") (binary_expression "0x38 - uVar1" (number_literal "0x38") (- "-") (identifier "uVar1"))) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" (else "else") (compound_statement "{\n    iVar6 = 0x94;\n    iVar7 = 0x98;\n    local_34 = 0x80;\n    __n = 0x78 - uVar1;\n  }" ({ "{") (expression_statement "iVar6 = 0x94;" (assignment_expression "iVar6 = 0x94" (identifier "iVar6") (= "=") (number_literal "0x94")) (; ";")) (expression_statement "iVar7 = 0x98;" (assignment_expression "iVar7 = 0x98" (identifier "iVar7") (= "=") (number_literal "0x98")) (; ";")) (expression_statement "local_34 = 0x80;" (assignment_expression "local_34 = 0x80" (identifier "local_34") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "__n = 0x78 - uVar1;" (assignment_expression "__n = 0x78 - uVar1" (identifier "__n") (= "=") (binary_expression "0x78 - uVar1" (number_literal "0x78") (- "-") (identifier "uVar1"))) (; ";")) (} "}")))) (expression_statement "memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);" (call_expression "memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n)" (identifier "memcpy") (argument_list "((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n)" (( "(") (cast_expression "(void *)((int)param_1 + uVar1 + 0x1c)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + uVar1 + 0x1c)" (( "(") (binary_expression "(int)param_1 + uVar1 + 0x1c" (binary_expression "(int)param_1 + uVar1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "uVar1")) (+ "+") (number_literal "0x1c")) () ")"))) (, ",") (pointer_expression "&DAT_0026ade0" (& "&") (identifier "DAT_0026ade0")) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "uVar1 = param_1[4];" (assignment_expression "uVar1 = param_1[4]" (identifier "uVar1") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*(uint *)((int)param_1 + iVar6) = uVar1 * 8;" (assignment_expression "*(uint *)((int)param_1 + iVar6) = uVar1 * 8" (pointer_expression "*(uint *)((int)param_1 + iVar6)" (* "*") (cast_expression "(uint *)((int)param_1 + iVar6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar6)" (( "(") (binary_expression "(int)param_1 + iVar6" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (binary_expression "uVar1 * 8" (identifier "uVar1") (* "*") (number_literal "8"))) (; ";")) (expression_statement "*(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;" (assignment_expression "*(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d" (pointer_expression "*(uint *)((int)param_1 + iVar7)" (* "*") (cast_expression "(uint *)((int)param_1 + iVar7)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar7)" (( "(") (binary_expression "(int)param_1 + iVar7" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar7")) () ")")))) (= "=") (binary_expression "param_1[5] << 3 | uVar1 >> 0x1d" (binary_expression "param_1[5] << 3" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (<< "<<") (number_literal "3")) (| "|") (binary_expression "uVar1 >> 0x1d" (identifier "uVar1") (>> ">>") (number_literal "0x1d")))) (; ";")) (expression_statement "FUN_001a4380(param_1 + 7,local_34,param_1);" (call_expression "FUN_001a4380(param_1 + 7,local_34,param_1)" (identifier "FUN_001a4380") (argument_list "(param_1 + 7,local_34,param_1)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) (, ",") (identifier "local_34") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" (identifier "uVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" (identifier "uVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_2[3] = param_1[3];" (assignment_expression "param_2[3] = param_1[3]" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_2[1] = uVar4;" (assignment_expression "param_2[1] = uVar4" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "param_2[2] = uVar5;" (assignment_expression "param_2[2] = uVar5" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

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

void * function_1(type_1 *ctx,void *resbuf)

{
  type_2 var_1;
  type_2 uVar2;
  type_3 mVar3;
  type_3 mVar4;
  type_3 mVar5;
  size_t __n;
  int var_4;
  int var_5;
  size_t local_34;
  
  var_1 = ctx->buflen;
  uVar2 = ctx->total[0];
  ctx->total[0] = var_1 + ctx->total[0];
  if (var_2(var_1,uVar2)) {
    ctx->total[1] = ctx->total[1] + 1;
  }
  if (var_1 < 0x38) {
    var_4 = 0x54;
    var_5 = 0x58;
    local_34 = 0x40;
    __n = 0x38 - var_1;
  }
  else {
    var_4 = 0x94;
    var_5 = 0x98;
    local_34 = 0x80;
    __n = 0x78 - var_1;
  }
  var_3(ctx->buffer + var_1,fillbuf,__n);
  var_1 = ctx->total[0];
  *(type_2 *)((int)ctx->total + var_4 + -0x10) = var_1 * 8;
  *(type_3 *)((int)ctx->total + var_5 + -0x10) = ctx->total[1] << 3 | var_1 >> 0x1d;
  var_6(ctx->buffer,local_34,ctx);
  mVar3 = ctx->A;
  mVar4 = ctx->B;
  mVar5 = ctx->C;
  *(type_3 *)((int)resbuf + 0xc) = ctx->D;
  *(type_3 *)resbuf = mVar3;
  *(type_3 *)((int)resbuf + 4) = mVar4;
  *(type_3 *)((int)resbuf + 8) = mVar5;
  return resbuf;
}


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

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

undefined4 * MASKED(undefined4 *param_1,undefined4 *param_2)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  size_t __n;
  int iVar6;
  int iVar7;
  undefined4 local_34;
  
  uVar1 = param_1[6];
  uVar2 = param_1[4];
  param_1[4] = uVar1 + param_1[4];
  if (CARRY4(uVar1,uVar2)) {
    param_1[5] = param_1[5] + 1;
  }
  if (uVar1 < 0x38) {
    iVar6 = 0x54;
    iVar7 = 0x58;
    local_34 = 0x40;
    __n = 0x38 - uVar1;
  }
  else {
    iVar6 = 0x94;
    iVar7 = 0x98;
    local_34 = 0x80;
    __n = 0x78 - uVar1;
  }
  memcpy((void *)((int)param_1 + uVar1 + 0x1c),&DAT_0026ade0,__n);
  uVar1 = param_1[4];
  *(uint *)((int)param_1 + iVar6) = uVar1 * 8;
  *(uint *)((int)param_1 + iVar7) = param_1[5] << 3 | uVar1 >> 0x1d;
  FUN_001a4380(param_1 + 7,local_34,param_1);
  uVar3 = *param_1;
  uVar4 = param_1[1];
  uVar5 = param_1[2];
  param_2[3] = param_1[3];
  *param_2 = uVar3;
  param_2[1] = uVar4;
  param_2[2] = uVar5;
  return param_2;
}

