Function at 0x6710b0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xa0]
push edi
push 0
push 0x8000000
push 3
push 0
push 0
push bind
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x67112a
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop ebx
add esp, 0x98
ret
push ebp
push esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0067492b
add esp, 4
push 0
lea ecx, [esp + 0x24]
push ecx
mov ebp, eax
push esi
push ebp
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
cmp esi, ecx
je 0x671198
test eax, eax
je 0x671170
test ecx, ecx
jne 0x671170
push str.Sizein_bigger_than_file_n
jmp 0x671175
push str.Read_Error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call fcn.0067493d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x98
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
lea edx, [esp + 0x64]
push edx
mov ecx, 0x12
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x70], 0x204d454d
mov dword [esp + 0x80], esi
mov dword [esp + 0x9c], eax
call dword [0x68a25c]
mov edi, dword [0x68a260]
push 0
push str.WAVE
mov esi, eax
call edi
test esi, esi
mov dword [esp + 0x2c], eax
jne 0x671205
push ebp
call fcn.0067493d
add esp, 4
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x98
ret
mov ebx, dword [0x68a264]
push 0x20
push 0
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
test eax, eax
jne 0x6712fa
push eax
push str.fmt
call edi
push 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x54]
push edx
push esi
mov dword [esp + 0x5c], eax
call ebx
mov ebp, dword [esp + 0xb0]
push 0x12
push ebp
push esi
call dword [0x68a268]
push 0
lea eax, [esp + 0x50]
push eax
push esi
call dword [0x68a26c]
cmp word [ebp], 1
jne 0x6712f6
push 0
push str.data
call edi
push 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
mov dword [esp + 0x48], eax
call ebx
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x6712f6
lea ebx, [eax + 3]
and ebx, 0xfffffffc
push ebx
call fcn.0067492b
mov edx, eax
mov ecx, ebx
mov ebp, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
rep stosb byte es:[edi], al
je 0x6712c8
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edx
push ecx
push esi
call dword [0x68a268]
mov ebp, dword [esp + 0x14]
push 0
push esi
call dword [0x68a258]
mov edx, dword [esp + 0xb4]
push ebp
mov dword [edx], ebx
call fcn.0067493d
mov eax, dword [esp + 0x14]
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x98
ret
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jmp 0x6712cc