Function at 0x10018cfb
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.10023c40
mov eax, dword [0x1005c220]
xor eax, ebp
mov dword [ebp + 0xf94], eax
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push str.hrtf_tables
push 0
call fcn.10012c9f
add esp, 0xc
test eax, eax
je 0x10018fe3
push ebx
push esi
push edi
jmp 0x10018fd2
xor esi, esi
mov dword [ebp - 0x7c], esi
movsx eax, byte [eax]
push eax
call fcn.1001f53e
test eax, eax
mov eax, dword [ebp - 0x78]
pop ecx
jne 0x10018d5c
cmp byte [eax], 0x2c
jne 0x10018d62
inc eax
mov dword [ebp - 0x78], eax
jmp 0x10018d46
cmp byte [eax], 0
je 0x10018e2b
cmp byte [eax], 0x2c
je 0x10018e20
push 0x1004cb50
push eax
call fcn.10023c00
pop ecx
pop ecx
mov edi, eax
jmp 0x10018d9f
mov eax, dword [ebp - 0x78]
mov al, byte [eax]
test al, al
je 0x10018da4
mov ebx, 0x1000
cmp esi, ebx
jae 0x10018da9
mov byte [ebp + esi - 0x74], al
inc esi
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], edi
jne 0x10018d85
mov ebx, 0x1000
test edi, edi
je 0x10018e20
cmp byte [edi], 0x2c
je 0x10018e20
inc edi
mov al, byte [edi]
cmp al, 0x72
jne 0x10018dde
push dword [ebp + 0xfa0]
sub ebx, esi
push 0x1004cb4c
lea eax, [ebp + esi - 0x74]
push ebx
push eax
call fcn.1001fd2a
add esp, 0x10
cmp eax, ebx
ja 0x10018dda
mov ebx, eax
add esi, ebx
jmp 0x10018deb
cmp al, 0x25
jne 0x10018dee
cmp esi, ebx
jae 0x10018deb
mov byte [ebp + esi - 0x74], al
inc esi
inc edi
jmp 0x10018e12
cmp dword [0x1005c200], 1
jl 0x10018e12
movsx eax, al
push eax
push str.Invalid_marker____c_n
push str.LoadHrtf
push str._EE_
call fcn.100168f0
add esp, 0x10
mov eax, edi
mov dword [ebp - 0x78], eax
cmp byte [edi], 0
jne 0x10018d6b
mov eax, 0xfff
cmp esi, eax
jbe 0x10018e2b
mov esi, eax
mov byte [ebp + esi - 0x74], 0
test esi, esi
jbe 0x10018e4a
lea edi, [ebp - 0x74]
dec edi
movsx eax, byte [edi + esi]
push eax
call fcn.1001f53e
pop ecx
test eax, eax
je 0x10018e4a
dec esi
jne 0x10018e38
mov byte [ebp + esi - 0x74], 0
cmp byte [ebp - 0x74], 0
je 0x10018fd2
cmp dword [0x1005c200], 3
mov esi, str.LoadHrtf
mov edi, str._II_
jl 0x10018e7f
lea eax, [ebp - 0x74]
push eax
push str.Loading__s..._n
push esi
push edi
call fcn.100168f0
add esp, 0x10
lea eax, [ebp - 0x74]
push 0x1004cb14
push eax
call fcn.1001fe9d
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x10018eb1
cmp dword [0x1005c200], 1
jl 0x10018fd2
lea eax, [ebp - 0x74]
push eax
push str.Could_not_open__s_n
jmp 0x10018fc4
push eax
push 8
pop ebx
push ebx
lea eax, [ebp + 0xf8c]
push 1
push eax
call fcn.10023bdd
add esp, 0x10
cmp eax, ebx
je 0x10018ef4
cmp dword [0x1005c200], 1
jl 0x10018fa2
lea eax, [ebp - 0x74]
push eax
push str.Failed_to_read_header_from__s_n
push esi
push str._EE_
call fcn.100168f0
add esp, 0x10
jmp 0x10018fa2
push ebx
lea eax, [ebp + 0xf8c]
push str.MinPHR00MinPHR01
push eax
call fcn.100222bd
add esp, 0xc
test eax, eax
jne 0x10018f36
cmp dword [0x1005c200], 3
jl 0x10018f25
push str.Detected_data_set_format_v0_n
push esi
push edi
call fcn.100168f0
add esp, 0xc
push dword [ebp + 0xfa0]
push dword [ebp - 0x80]
call fcn.100184c9
pop ecx
jmp 0x10018f75
push ebx
lea eax, [ebp + 0xf8c]
push 0x1003f5f4
push eax
call fcn.100222bd
add esp, 0xc
test eax, eax
jne 0x10018f7b
cmp dword [0x1005c200], 3
jl 0x10018f67
push str.Detected_data_set_format_v1_n
push esi
push edi
call fcn.100168f0
add esp, 0xc
push dword [ebp + 0xfa0]
mov ebx, dword [ebp - 0x80]
call fcn.10018950
pop ecx
mov dword [ebp - 0x7c], eax
jmp 0x10018fa2
cmp dword [0x1005c200], 1
jl 0x10018fa2
lea eax, [ebp + 0xf8c]
push eax
lea eax, [ebp - 0x74]
push eax
push str.Invalid_header_in__s:___.8s__n
push esi
push str._EE_
call fcn.100168f0
add esp, 0x14
push dword [ebp - 0x80]
call fcn.100202bb
mov ebx, dword [ebp - 0x7c]
pop ecx
test ebx, ebx
jne 0x10018ff8
cmp dword [0x1005c200], 1
jl 0x10018fd2
lea eax, [ebp - 0x74]
push eax
push str.Failed_to_load__s_n
push esi
push str._EE_
call fcn.100168f0
add esp, 0x10
mov eax, dword [ebp - 0x78]
cmp byte [eax], 0
jne 0x10018d41
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xf94]
xor ecx, ebp
call fcn.1001f16b
add ebp, 0xf98
leave
ret
mov eax, dword [0x1005e010]
mov dword [ebx + 0x1c], eax
cmp dword [0x1005c200], 3
mov dword [0x1005e010], ebx
jl 0x1001902c
push dword [ebx]
push 0x1501
call fcn.1000d975
pop ecx
push eax
push str.Loaded_HRTF_support_for_format:__s__uhz_n
push esi
push edi
call fcn.100168f0
add esp, 0x14
mov eax, ebx
jmp 0x10018fe0