Function at 0x4147b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x144
mov eax, dword [str..MUSIC_]
mov ecx, dword [0x42daf4]
mov dl, byte [0x42daf8]
push ebx
push esi
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], dl
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x154]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x414921
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x414921
mov eax, dword [ebx + 0x1060]
test eax, eax
je 0x414816
push ebx
call fcn.00414a90
add esp, 4
mov edi, dword [esp + 0x158]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x8000080
mov ecx, edx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0x60]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414921
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x48]
push 0xc
push edx
push esi
call edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41491a
push 4
lea eax, [esp + 0x44]
push str.RIFF
push eax
call fcn.00415490
add esp, 0xc
test eax, eax
jne 0x41491a
push 4
lea ecx, [esp + 0x4c]
push str.SNDS
push ecx
call fcn.00415490
add esp, 0xc
test eax, eax
jne 0x41491a
mov ecx, dword [str.fmt]
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x24], eax
push edx
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
call fcn.004140a0
add esp, 8
test eax, eax
jne 0x41491a
mov eax, dword [esp + 0x14]
push 0
cmp eax, 0x14
jb 0x41492e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x14
push ecx
push esi
call edi
cmp dword [esp + 0xc], 0x14
je 0x414948
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x144
ret
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push esi
call edi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x41491a
xor edx, edx
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov word [esp + 0x3c], dx
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x30]
push 0x12
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x41491a
mov ax, word [esp + 0x26]
cmp ax, word [esp + 0x3a]
jne 0x41491a
mov cx, word [esp + 0x1a]
cmp cx, word [esp + 0x2e]
jne 0x41491a
mov edx, dword [str.data]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], edx
call fcn.004140a0
add esp, 8
test eax, eax
jne 0x41491a
push 1
push eax
push eax
push esi
mov dword [ebx + 0x1060], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx + 0x1064], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1068], eax
mov dword [ebx + 0x106c], eax
mov eax, dword [esp + 0x15c]
test eax, eax
jge 0x4149e2
xor eax, eax
jmp 0x4149ec
cmp eax, 0x64
jle 0x4149ec
mov eax, 0x64
mov ecx, dword [ebx + 0x1074]
mov dword [ebx + 0x1024], eax
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
push 0x64
push 0
call fcn.00413fc0
mov ecx, dword [ebx + 0x14]
add esp, 0xc
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
test eax, eax
jne 0x41491a
call fcn.004151b0
mov dword [0x697fa0], 0
mov dword [0x697f9c], 0
mov esi, 7
push ebx
call fcn.00414c40
add esp, 4
dec esi
jne 0x414a49
mov eax, dword [ebx + 0x14]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, dword [ebx + 0x14]
push 1
push 0
push 0
mov edx, dword [ebx]
push ebx
call dword [edx + 0x30]
pop edi
pop esi
mov dword [0x697f98], 1
xor eax, eax
pop ebx
add esp, 0x144
ret