user: Converte this assembly snippet into its equivalent C code:

```asm
<wrong_file>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %edi,%r12d
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    $0x3e8,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  lea    D34(%rip),%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D5(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %rsp,%rbx
  movabs $0x312e312f50545448,%rax
  movabs $0x746f4e2034303420,%rdx
  mov    %rax,(%rsp)
  mov    %rdx,0x8(%rsp)
  movabs $0xa0d646e756f4620,%rax
  mov    %rax,0x10(%rsp)
  movb   $0x0,0x18(%rsp)
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <send@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  lea    D16(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <send@plt>
  movabs $0x697463656e6e6f43,%rax
  movabs $0x736f6c63203a6e6f,%rdx
  mov    %rax,(%rsp)
  mov    %rdx,0x8(%rsp)
  movl   $0xa0d65,0x10(%rsp)
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <send@plt>
  lea    D8(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <send@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <send@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x410,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D34
type_infered: string
name: retrieve_data
arguments: tag: D5
type_infered: string
name: retrieve_data
arguments: tag: D16
type_infered: string
name: retrieve_data
arguments: tag: D8
type_infered: string

tool: D34: <html>
<head><title>404 File Not Exists</title></head><body bgcolor="white">
<center><h1>404 file :

tool: D5: ; you request is not exists</h1></center>
</body>
</html>

tool: D16: Content-Length: %lu


tool: D8: 


assistant: ```c
void wrong_file(int sockfd, char *filename) {
  char buf[1024];
  char *err_404 = NULL;
  err_404 = (char *)malloc(1000 * sizeof(char));
  strcpy(err_404, "<html>\r\n<head><title>404 File Not "
                  "Exists</title></head><body "
                  "bgcolor=\"white\">\r\n<center><h1>404 file :");
  strcat(err_404, filename);
  strcat(err_404, "; you request is not exists</h1></center>\r\n</body>\r\n</html>");
  sprintf(buf, "HTTP/1.1 404 Not Found\r\n");
  send(sockfd, buf, strlen(buf), 0);
  sprintf(buf, "Content-Length: %lu\r\n", strlen(err_404));
  send(sockfd, buf, strlen(buf), 0);
  sprintf(buf, "Connection: close\r\n");
  send(sockfd, buf, strlen(buf), 0);
  strcpy(buf, "\r\n");
  send(sockfd, buf, strlen(buf), 0);
  strcpy(buf, err_404);
  send(sockfd, buf, strlen(err_404), 0);
}
```