user: 请将以下的汇编代码转换成C语言代码:

```asm
<GetINIString>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x100,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %rcx,%r13
  mov    %r9,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  cmp    %rdx,%rcx
  je     L29
  mov    %rdx,%rsi
  mov    %rcx,%rdi
  call   <strcpy@plt>
L29:
  lea    D37(%rip),%rsi
  mov    %rbp,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L117
  lea    0x50(%rsp),%r14
  lea    D31(%rip),%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <strcat@plt>
  lea    D19(%rip),%rsi
  mov    %r14,%rdi
  call   <strcat@plt>
  lea    0xa0(%rsp),%r12
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  lea    D24(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  mov    %rsp,%rbx
  jmp    L123
L113:
  mov    %r12,%rdi
  call   <strlen@plt>
  cltq
  lea    (%rsp,%rax,1),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
L117:
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x100,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L52:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L116
  mov    %rbp,%rdi
  call   <ferror@plt>
  test   %eax,%eax
  jne    L116
L123:
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <sgets@plt>
  lea    0x50(%rsp),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L52
L46:
  mov    %rbp,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <sgets@plt>
  lea    0xa0(%rsp),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L113
  cmpb   $0x0,(%rsp)
  je     L52
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L52
  mov    %rbp,%rdi
  call   <ferror@plt>
  test   %eax,%eax
  je     L46
  jmp    L52
L116:
  mov    %rbp,%rdi
  call   <fclose@plt>
  jmp    L117
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D37
type: string
name: read_data
arguments: data_tag: D31
type: string
name: read_data
arguments: data_tag: D19
type: string
name: read_data
arguments: data_tag: D24
type: string

tool: D37: rb

tool: D31: [

tool: D19: ]

tool: D24: =

assistant: ```c
void GetINIString(char *section, char *key, char *def, char *dest, int destsize, char *filename) {
  FILE *fp;
  char s1[80], s2[80], s3[80];
  if (dest != def)
    strcpy(dest, def);
  fp = fopen(filename, "rb");
  if (fp == NULL)
    return;
  strcpy(s2, "[");
  strcat(s2, section);
  strcat(s2, "]");
  strcpy(s3, key);
  strcat(s3, "=");
  do {
    fgets(s1, 80, fp);
    sgets(s1, s1);
    if (strcasecmp(s1, s2) == 0) {
      do {
        fgets(s1, 80, fp);
        sgets(s1, s1);
        if (strncasecmp(s1, s3, strlen(s3)) == 0) {
          strcpy(dest, s1 + strlen(s3));
          fclose(fp);
          return;
        }
      } while (s1[0] != 0 && !feof(fp) && !ferror(fp));
    }
  } while (!feof(fp) && !ferror(fp));
  fclose(fp);
}
```