
/* WARNING: Unknown calling convention */

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

{
  md5_uint32 mVar1;
  md5_uint32 mVar2;
  md5_uint32 mVar3;
  
  mVar1 = ctx->C;
  mVar2 = ctx->D;
  mVar3 = ctx->A;
  *(md5_uint32 *)((int)resbuf + 4) = ctx->B;
  *(md5_uint32 *)resbuf = mVar3;
  *(md5_uint32 *)((int)resbuf + 8) = mVar1;
  *(md5_uint32 *)((int)resbuf + 0xc) = mVar2;
  return resbuf;
}



void FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  uVar1 = param_1[2];
  uVar2 = param_1[3];
  uVar3 = *param_1;
  param_2[1] = param_1[1];
  *param_2 = uVar3;
  param_2[2] = uVar1;
  param_2[3] = uVar2;
  return;
}


PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [EDX + 0x4]
MOV EBX,dword ptr [EDX + 0x8]
MOV ECX,dword ptr [EDX + 0xc]
MOV EDX,dword ptr [EDX]
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0x8],EBX
MOV dword ptr [EAX + 0xc],ECX
ADD ESP,0x10
POP EBX
POP ESI
RET
(translation_unit "void FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0003d0c0(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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[3];" (assignment_expression "uVar2 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_2[1] = param_1[1];" (assignment_expression "param_2[1] = param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = uVar2;" (assignment_expression "param_2[3] = uVar2" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid * md5_read_ctx(md5_ctx *ctx,void *resbuf)\n\n{\n  md5_uint32 mVar1;\n  md5_uint32 mVar2;\n  md5_uint32 mVar3;\n  \n  mVar1 = ctx->C;\n  mVar2 = ctx->D;\n  mVar3 = ctx->A;\n  *(md5_uint32 *)((int)resbuf + 4) = ctx->B;\n  *(md5_uint32 *)resbuf = mVar3;\n  *(md5_uint32 *)((int)resbuf + 8) = mVar1;\n  *(md5_uint32 *)((int)resbuf + 0xc) = mVar2;\n  return resbuf;\n}\n\n" comment (function_definition "void * md5_read_ctx(md5_ctx *ctx,void *resbuf)\n\n{\n  md5_uint32 mVar1;\n  md5_uint32 mVar2;\n  md5_uint32 mVar3;\n  \n  mVar1 = ctx->C;\n  mVar2 = ctx->D;\n  mVar3 = ctx->A;\n  *(md5_uint32 *)((int)resbuf + 4) = ctx->B;\n  *(md5_uint32 *)resbuf = mVar3;\n  *(md5_uint32 *)((int)resbuf + 8) = mVar1;\n  *(md5_uint32 *)((int)resbuf + 0xc) = mVar2;\n  return resbuf;\n}" primitive_type (pointer_declarator "* md5_read_ctx(md5_ctx *ctx,void *resbuf)" * (function_declarator "md5_read_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  md5_uint32 mVar1;\n  md5_uint32 mVar2;\n  md5_uint32 mVar3;\n  \n  mVar1 = ctx->C;\n  mVar2 = ctx->D;\n  mVar3 = ctx->A;\n  *(md5_uint32 *)((int)resbuf + 4) = ctx->B;\n  *(md5_uint32 *)resbuf = mVar3;\n  *(md5_uint32 *)((int)resbuf + 8) = mVar1;\n  *(md5_uint32 *)((int)resbuf + 0xc) = mVar2;\n  return resbuf;\n}" { (declaration "md5_uint32 mVar1;" type_identifier identifier ;) (declaration "md5_uint32 mVar2;" type_identifier identifier ;) (declaration "md5_uint32 mVar3;" type_identifier identifier ;) (expression_statement "mVar1 = ctx->C;" (assignment_expression "mVar1 = ctx->C" identifier = (field_expression "ctx->C" identifier -> field_identifier)) ;) (expression_statement "mVar2 = ctx->D;" (assignment_expression "mVar2 = ctx->D" identifier = (field_expression "ctx->D" identifier -> field_identifier)) ;) (expression_statement "mVar3 = ctx->A;" (assignment_expression "mVar3 = ctx->A" identifier = (field_expression "ctx->A" identifier -> field_identifier)) ;) (expression_statement "*(md5_uint32 *)((int)resbuf + 4) = ctx->B;" (assignment_expression "*(md5_uint32 *)((int)resbuf + 4) = ctx->B" (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) )))) = (field_expression "ctx->B" 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 + 8) = mVar1;" (assignment_expression "*(md5_uint32 *)((int)resbuf + 8) = mVar1" (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) ;) (expression_statement "*(md5_uint32 *)((int)resbuf + 0xc) = mVar2;" (assignment_expression "*(md5_uint32 *)((int)resbuf + 0xc) = mVar2" (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) )))) = identifier) ;) (return_statement "return resbuf;" return identifier ;) })))
(translation_unit "void FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0003d0c0(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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[3];" (assignment_expression "uVar2 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_2[1] = param_1[1];" (assignment_expression "param_2[1] = param_1[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = uVar2;" (assignment_expression "param_2[3] = uVar2" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (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 ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 ;) })))
(function_definition "void FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003d0c0(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0003d0c0") (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  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = param_1[2];\n  uVar2 = param_1[3];\n  uVar3 = *param_1;\n  param_2[1] = param_1[1];\n  *param_2 = uVar3;\n  param_2[2] = uVar1;\n  param_2[3] = uVar2;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[3];" (assignment_expression "uVar2 = param_1[3]" (identifier "uVar2") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_2[1] = param_1[1];" (assignment_expression "param_2[1] = param_1[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2[3] = uVar2;" (assignment_expression "param_2[3] = uVar2" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

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

{
  type_2 mVar1;
  type_2 mVar2;
  type_2 mVar3;
  
  mVar1 = ctx->C;
  mVar2 = ctx->D;
  mVar3 = ctx->A;
  *(type_2 *)((int)resbuf + 4) = ctx->B;
  *(type_2 *)resbuf = mVar3;
  *(type_2 *)((int)resbuf + 8) = mVar1;
  *(type_2 *)((int)resbuf + 0xc) = mVar2;
  return resbuf;
}


(translation_unit (function_definition type: (primitive_type) 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)) (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: (identifier) right: (pointer_expression argument: (identifier)))) (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))))

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  uVar1 = param_1[2];
  uVar2 = param_1[3];
  uVar3 = *param_1;
  param_2[1] = param_1[1];
  *param_2 = uVar3;
  param_2[2] = uVar1;
  param_2[3] = uVar2;
  return;
}

