user: Translate the below assembly code into C programming language:

```asm
<InitialiseEncryptionComponents>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rsi,0x20(%rsp)
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %r8,0x10(%rsp)
  mov    %r9,0x18(%rsp)
  mov    0x90(%rsp),%rax
  mov    %rax,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movl   $0x0,(%rcx)
  lea    0x38(%rsp),%rcx
  lea    0x40(%rsp),%r8
  lea    D96(%rip),%rdx
  lea    D97(%rip),%rsi
  call   <GetNameValuePair@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L120
  mov    $0x0,%r14d
  mov    $0x0,%ebp
  movl   $0x0,0xc(%rsp)
  lea    D147(%rip),%r15
  jmp    L119
L37:
  mov    0x40(%rsp),%rsi
  mov    0x20(%rsp),%rax
  mov    (%rax),%rdi
  call   <CopyStr@plt>
  mov    0x20(%rsp),%rdx
  mov    %rax,(%rdx)
  jmp    L38
L54:
  mov    0x40(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  call   <CopyStr@plt>
  mov    %rax,0x30(%rsp)
  movl   $0x0,0xc(%rsp)
  test   %rax,%rax
  je     L106
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
  jmp    L106
L193:
  mov    0x40(%rsp),%rsi
  mov    %r14,%rdi
  call   <CopyStr@plt>
  mov    %rax,%r14
  mov    $0x0,%ebp
  test   %rax,%rax
  je     L184
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebp
  jmp    L184
L23:
  lea    0x30(%rsp),%rdi
  mov    0x40(%rsp),%rsi
  call   <HexStrToBytes@plt>
  mov    %eax,0xc(%rsp)
  jmp    L170
L210:
  mov    0x40(%rsp),%rsi
  mov    %r12,%rdi
  call   <HexStrToBytes@plt>
  mov    %eax,0x0(%r13)
L231:
  lea    D108(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L246
L117:
  lea    0x38(%rsp),%rcx
  lea    0x40(%rsp),%r8
  lea    D96(%rip),%rdx
  lea    D97(%rip),%rsi
  mov    %rbx,%rdi
  call   <GetNameValuePair@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L58
L119:
  mov    0x38(%rsp),%rdi
  test   %rdi,%rdi
  je     L117
  call   <strlen@plt>
  test   %eax,%eax
  je     L117
  mov    %r15,%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L37
L38:
  lea    D5(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L54
L106:
  lea    D116(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L193
L184:
  lea    D23(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L196
  lea    D140(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L92
L196:
  mov    0x40(%rsp),%rsi
  mov    (%r12),%rdi
  call   <CopyStr@plt>
  mov    %rax,%rdi
  mov    %rax,(%r12)
  mov    $0x0,%eax
  test   %rdi,%rdi
  je     L155
  call   <strlen@plt>
L155:
  mov    %eax,0x0(%r13)
L92:
  lea    D102(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L23
L170:
  lea    D2(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L210
  lea    D72(%rip),%rsi
  mov    0x38(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L231
  jmp    L210
L246:
  lea    D83(%rip),%rsi
  mov    0x40(%rsp),%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L117
  mov    0x28(%rsp),%rax
  orl    $0x4,(%rax)
  jmp    L117
L120:
  mov    %rax,%r14
  mov    $0x0,%ebp
  movl   $0x0,0xc(%rsp)
L58:
  mov    0xc(%rsp),%r15d
  lea    (%r15,%rbp,1),%r12d
  mov    %r12d,%esi
  mov    $0x0,%edi
  call   <SetStrLen@plt>
  mov    %rax,%rbx
  mov    %ebp,%edx
  mov    %r14,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  movslq %ebp,%rdi
  add    %rbx,%rdi
  mov    %r15d,%edx
  mov    0x30(%rsp),%rsi
  call   <memcpy@plt>
  mov    $0x0,%r8d
  mov    %r12d,%ecx
  mov    %rbx,%rdx
  lea    D11(%rip),%rsi
  mov    0x10(%rsp),%rdi
  call   <HashBytes@plt>
  mov    0x18(%rsp),%rcx
  mov    %eax,(%rcx)
  mov    0x38(%rsp),%rdi
  call   <DestroyString@plt>
  mov    0x40(%rsp),%rdi
  call   <DestroyString@plt>
  mov    %rbx,%rdi
  call   <DestroyString@plt>
  mov    0x30(%rsp),%rdi
  call   <DestroyString@plt>
  mov    %r14,%rdi
  call   <DestroyString@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D96
type_guessed: string
name: parse_data
arguments: data_tag: D97
type_guessed: string
name: parse_data
arguments: data_tag: D147
type_guessed: string
name: parse_data
arguments: data_tag: D108
type_guessed: string
name: parse_data
arguments: data_tag: D5
type_guessed: string
name: parse_data
arguments: data_tag: D116
type_guessed: string
name: parse_data
arguments: data_tag: D23
type_guessed: string
name: parse_data
arguments: data_tag: D140
type_guessed: string
name: parse_data
arguments: data_tag: D102
type_guessed: string
name: parse_data
arguments: data_tag: D2
type_guessed: string
name: parse_data
arguments: data_tag: D72
type_guessed: string
name: parse_data
arguments: data_tag: D83
type_guessed: string
name: parse_data
arguments: data_tag: D11
type_guessed: string

tool: D96: =

tool: D97: \S

tool: D147: Cipher

tool: D108: PadBlock

tool: D5: Key

tool: D116: Salt

tool: D23: iv

tool: D140: InputVector

tool: D102: HexKey

tool: D2: HexIV

tool: D72: HexInputVector

tool: D83: N

tool: D11: md5

assistant: ```c
void InitialiseEncryptionComponents(const char *Args, char **Cipher, char **InputVector, int *IVLen, char **Key, int *KeyLen, int *Flags) {
  char *TmpKey = NULL, *Tempstr = NULL;
  int klen = 0, slen = 0;
  char *Name = NULL, *Value = NULL, *ptr;
  char *Salt = NULL;
  *IVLen = 0;
  ptr = GetNameValuePair(Args, "\\S", "=", &Name, &Value);
  while (ptr) {
    if ((Name ? strlen(Name) : 0)) {
      if (strcasecmp(Name, "Cipher") == 0) {
        *Cipher = CopyStr(*Cipher, Value);
      }
      if (strcasecmp(Name, "Key") == 0) {
        TmpKey = CopyStr(TmpKey, Value);
        klen = (TmpKey ? strlen(TmpKey) : 0);
      }
      if (strcasecmp(Name, "Salt") == 0) {
        Salt = CopyStr(Salt, Value);
        slen = (Salt ? strlen(Salt) : 0);
      }
      if ((strcasecmp(Name, "iv") == 0) || (strcasecmp(Name, "InputVector") == 0)) {
        *InputVector = CopyStr(*InputVector, Value);
        *IVLen = (*InputVector ? strlen(*InputVector) : 0);
      }
      if (strcasecmp(Name, "HexKey") == 0) {
        klen = HexStrToBytes(&TmpKey, Value);
      }
      if ((strcasecmp(Name, "HexIV") == 0) || (strcasecmp(Name, "HexInputVector") == 0)) {
        *IVLen = HexStrToBytes(InputVector, Value);
      }
      if (strcasecmp(Name, "PadBlock") == 0) {
        if (strcasecmp(Value, "N") == 0)
          *Flags |= 4;
      }
    }
    ptr = GetNameValuePair(ptr, "\\S", "=", &Name, &Value);
  }
  Tempstr = SetStrLen(Tempstr, klen + slen);
  memcpy(Tempstr, Salt, slen);
  memcpy(Tempstr + slen, TmpKey, klen);
  *KeyLen = HashBytes(Key, "md5", Tempstr, slen + klen, 0);
  DestroyString(Name);
  DestroyString(Value);
  DestroyString(Tempstr);
  DestroyString(TmpKey);
  DestroyString(Salt);
}
```