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

```asm
<FileExtensionToUpnpClass>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jne    L26
L112:
  cmpb   $0x2e,0x0(%rbp)
  je     L46
  mov    %rbp,%rsi
  lea    0x4(%rsp),%rbx
  lea    0x5(%rsp),%rdi
  movb   $0x2e,0x4(%rsp)
  call   <strcpy@plt>
  mov    %rbx,%rbp
L46:
  lea    D91(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  jne    L1
L54:
  lea    D156(%rip),%rax
L192:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L63
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L26:
  lea    0xe(%rsp),%rbx
  mov    %rdi,%rsi
  xor    %r8d,%r8d
  mov    $0x1,%ecx
  mov    $0xa,%edx
  mov    %rbx,%rdi
  mov    %rbx,%rbp
  call   <strToUtf8@plt>
  jmp    L112
  nopl   (%rax)
L1:
  lea    D35(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L54
  lea    D123(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L54
  lea    D121(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  jne    L155
L177:
  lea    D167(%rip),%rax
  jmp    L192
L155:
  lea    D98(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L177
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L177
  lea    D62(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L177
  lea    D106(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  jne    L44
L57:
  lea    D93(%rip),%rax
  jmp    L192
L63:
  call   <__stack_chk_fail@plt>
L44:
  lea    D96(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L57
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L57
  lea    D82(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmpi@plt>
  test   %rax,%rax
  jne    L144
L84:
  lea    D16(%rip),%rax
  jmp    L192
L144:
  lea    D28(%rip),%rsi
  mov    %rbp,%rdi
  call   <stricmp@plt>
  test   %rax,%rax
  je     L84
  lea    D76(%rip),%rax
  jmp    L192
```

tool_calls: name: disassemble_data
arguments: tag: D91
type_infered: string
name: disassemble_data
arguments: tag: D156
type_infered: string
name: disassemble_data
arguments: tag: D35
type_infered: string
name: disassemble_data
arguments: tag: D123
type_infered: string
name: disassemble_data
arguments: tag: D121
type_infered: string
name: disassemble_data
arguments: tag: D167
type_infered: string
name: disassemble_data
arguments: tag: D98
type_infered: string
name: disassemble_data
arguments: tag: D6
type_infered: string
name: disassemble_data
arguments: tag: D62
type_infered: string
name: disassemble_data
arguments: tag: D106
type_infered: string
name: disassemble_data
arguments: tag: D93
type_infered: string
name: disassemble_data
arguments: tag: D96
type_infered: string
name: disassemble_data
arguments: tag: D3
type_infered: string
name: disassemble_data
arguments: tag: D82
type_infered: string
name: disassemble_data
arguments: tag: D16
type_infered: string
name: disassemble_data
arguments: tag: D28
type_infered: string
name: disassemble_data
arguments: tag: D76
type_infered: string

tool: D91: .mp3

tool: D156: object.item.audioItem

tool: D35: .wma

tool: D123: .ogg

tool: D121: .asf

tool: D167: object.item.videoItem

tool: D98: .wmv

tool: D6: .mpg

tool: D62: .mov

tool: D106: .jpg

tool: D93: object.item.imageItem

tool: D96: .jpeg

tool: D3: .bmp

tool: D82: .m3u

tool: D16: object.container.playlistContainer

tool: D28: .asx

tool: D76: object.item

assistant: ```c
char *FileExtensionToUpnpClass(char *extension, int wide) {
  char tempExtension[10], temp2[10];
  char *retVal = NULL;
  if (wide) {
    strToUtf8(temp2, extension, 10, 1, NULL);
    extension = temp2;
  }
  if (extension[0] != '.') {
    tempExtension[0] = '.';
    strcpy(tempExtension + 1, extension);
    extension = tempExtension;
  }
  if (stricmp(extension, ".mp3") == 0) {
    retVal = "object.item.audioItem";
  } else if (stricmp(extension, ".wma") == 0) {
    retVal = "object.item.audioItem";
  } else if (stricmp(extension, ".ogg") == 0) {
    retVal = "object.item.audioItem";
  } else if (stricmp(extension, ".asf") == 0) {
    retVal = "object.item.videoItem";
  } else if (stricmp(extension, ".wmv") == 0) {
    retVal = "object.item.videoItem";
  } else if (stricmp(extension, ".mpg") == 0) {
    retVal = "object.item.videoItem";
  } else if (stricmp(extension, ".mov") == 0) {
    retVal = "object.item.videoItem";
  } else if (stricmp(extension, ".jpg") == 0) {
    retVal = "object.item.imageItem";
  } else if (stricmp(extension, ".jpeg") == 0) {
    retVal = "object.item.imageItem";
  } else if (stricmp(extension, ".bmp") == 0) {
    retVal = "object.item.imageItem";
  } else if (strcmpi(extension, ".m3u") == 0) {
    retVal = "object.container.playlistContainer";
  } else if (stricmp(extension, ".asx") == 0) {
    retVal = "object.container.playlistContainer";
  } else {
    retVal = "object.item";
  }
  return retVal;
}
```