Function at 0x485f0c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd0
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040340c
xor eax, eax
push ebp
push 0x48615b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.004139d8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
push dword [0xbaea30]
push dword [0xbaea2c]
push dword [0xbaea28]
push dword [0xbaea24]
push 0
push 0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.vorbisfile.dll_ov_open_callbacks
add esp, 0x20
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
call sub.vorbisfile.dll_ov_info
add esp, 8
mov esi, eax
lea edi, [ebp - 0x330]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x310]
push eax
call sub.vorbisfile.dll_ov_pcm_total
add esp, 8
add eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
call fcn.004139d8
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jge 0x4860a3
lea eax, [ebp - 0x34]
push eax
push 1
push 2
push 0
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
lea eax, [ebp - 0x310]
push eax
call sub.vorbisfile.dll_ov_read
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x48607d
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x28], eax
jmp 0x486083
cmp dword [ebp - 0x18], 0
je 0x4860a3
mov eax, dword [ebp - 0x18]
add dword [0xbaea40], eax
mov eax, dword [ebp - 0x18]
sar eax, 1
jns 0x486096
adc eax, 0
call fcn.0042e830
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jl 0x486036
mov eax, dword [ebp - 4]
call fcn.00403224
mov edx, eax
sub edx, 3
lea eax, [ebp - 4]
call fcn.004035a8
lea eax, [ebp - 0x14]
mov ecx, 0x486174
mov edx, dword [ebp - 4]
call fcn.00403270
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0x14]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x310]
push eax
call sub.vorbisfile.dll_ov_clear
pop ecx
lea eax, [ebp - 0x24]
call fcn.00413a50
lea eax, [ebp - 0x20]
call fcn.00413a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486162
lea eax, [ebp - 0x14]
call fcn.004030ac
lea eax, [ebp - 4]
call fcn.004030ac
ret