Function at 0x101d7df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.102326e0
lea eax, [ebp - 4]
push eax
push str.hrtf_tables
push 0
mov dword [ebp - 4], 0
call fcn.101d6730
add esp, 0xc
test eax, eax
jne 0x101d7e1f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp byte [eax], 0
push ebx
push esi
push edi
je 0x101d80c0
mov edi, edi
xor esi, esi
mov dword [ebp - 8], esi
movsx ecx, byte [eax]
push ecx
call fcn.102333d6
add esp, 4
test eax, eax
mov eax, dword [ebp - 4]
jne 0x101d7e4d
cmp byte [eax], 0x2c
jne 0x101d7e53
inc eax
mov dword [ebp - 4], eax
jmp 0x101d7e35
cmp byte [eax], 0
je 0x101d7f35
lea esp, [esp]
cmp byte [eax], 0x2c
je 0x101d7f28
push 0x10296ab0
push eax
call fcn.102380c0
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 8
cmp eax, ebx
je 0x101d7e9e
mov cl, byte [eax]
test cl, cl
je 0x101d7e9e
cmp esi, 0x1000
jae 0x101d7e9e
inc eax
mov byte [ebp + esi - 0x1010], cl
inc esi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x101d7e80
test ebx, ebx
je 0x101d7f28
cmp byte [ebx], 0x2c
je 0x101d7f28
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x72
jne 0x101d7edf
mov edx, dword [ebp + 8]
push edx
mov edi, 0x1000
push 0x1027acd0
sub edi, esi
lea eax, [ebp + esi - 0x1010]
push edi
push eax
call fcn.10233ed9
add esp, 0x10
cmp eax, edi
jbe 0x101d7eda
mov eax, edi
add esi, eax
inc ebx
jmp 0x101d7f1a
cmp al, 0x25
jne 0x101d7ef6
cmp esi, 0x1000
jae 0x101d7ef3
mov byte [ebp + esi - 0x1010], al
inc esi
inc ebx
jmp 0x101d7f1a
cmp dword [0x102d9578], 1
jl 0x101d7f1a
movsx ecx, al
push ecx
push str.Invalid_marker____c_n
push str.LoadHrtf
push str._EE_
call fcn.101c6c20
add esp, 0x10
mov eax, ebx
mov dword [ebp - 4], eax
cmp byte [ebx], 0
jne 0x101d7e60
cmp esi, 0xfff
jbe 0x101d7f35
mov esi, 0xfff
mov byte [ebp + esi - 0x1010], 0
test esi, esi
je 0x101d7f68
lea edi, [ebp - 0x1010]
jmp 0x101d7f50
movsx edx, byte [edi + esi - 1]
push edx
call fcn.102333d6
add esp, 4
test eax, eax
je 0x101d7f65
dec esi
jne 0x101d7f50
mov eax, dword [ebp - 4]
mov byte [ebp + esi - 0x1010], 0
cmp byte [ebp - 0x1010], 0
je 0x101d80b7
mov ebx, 3
cmp dword [0x102d9578], ebx
jl 0x101d7fa8
lea eax, [ebp - 0x1010]
push eax
push str.Loading__s..._n
push str.LoadHrtf
push str._II_
call fcn.101c6c20
add esp, 0x10
lea ecx, [ebp - 0x1010]
push 0x10256a58
push ecx
call fcn.102327c7
mov edi, eax
add esp, 8
test edi, edi
jne 0x101d7fe0
cmp dword [0x102d9578], 1
jl 0x101d80b4
lea edx, [ebp - 0x1010]
push edx
push str.Could_not_open__s_n
jmp 0x101d80a2
push edi
push 8
mov esi, 1
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.1023259a
add esp, 0x10
cmp eax, 8
je 0x101d8022
cmp dword [0x102d9578], esi
jl 0x101d8079
lea ecx, [ebp - 0x1010]
push ecx
push str.Failed_to_read_header_from__s_n
push str.LoadHrtf
push str._EE_
call fcn.101c6c20
add esp, 0x10
jmp 0x101d8079
mov eax, 8
xor ecx, ecx
lea esp, [esp]
mov edx, dword [ebp + ecx - 0x10]
cmp edx, dword [ecx + str.MinPHR00MinPHR01]
jne 0x101d80c9
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x101d8030
cmp dword [0x102d9578], ebx
jl 0x101d806a
push str.Detected_data_set_format_v0_n
push str.LoadHrtf
push str._II_
call fcn.101c6c20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.101d75a0
mov dword [ebp - 8], eax
add esp, 4
push edi
call fcn.102322dc
mov esi, dword [ebp - 8]
add esp, 4
test esi, esi
jne 0x101d8147
cmp dword [0x102d9578], 1
jl 0x101d80b4
lea eax, [ebp - 0x1010]
push eax
push str.Failed_to_load__s_n
push str.LoadHrtf
push str._EE_
call fcn.101c6c20
add esp, 0x10
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x101d7e30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
xor ecx, ecx
mov edx, dword [ebp + ecx - 0x10]
cmp edx, dword [ecx + 0x1028955c]
jne 0x101d8114
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x101d80d0
cmp dword [0x102d9578], ebx
jl 0x101d8106
push str.Detected_data_set_format_v1_n
push str.LoadHrtf
push str._II_
call fcn.101c6c20
add esp, 0xc
mov eax, dword [ebp + 8]
push edi
call fcn.101d7a10
jmp 0x101d8073
cmp dword [0x102d9578], esi
jl 0x101d8079
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push str.Invalid_header_in__s:___.8s__n
push str.LoadHrtf
push str._EE_
call fcn.101c6c20
add esp, 0x14
jmp 0x101d8079
mov ecx, dword [0x102de570]
mov dword [esi + 0x1c], ecx
mov dword [0x102de570], esi
cmp dword [0x102d9578], ebx
jl 0x101d8186
mov edx, dword [esi]
push edx
push 0x1501
call fcn.101c33e0
add esp, 4
push eax
push str.Loaded_HRTF_support_for_format:__s__uhz_n
push str.LoadHrtf
push str._II_
call fcn.101c6c20
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret