Function at 0x490130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x28], eax
push str..wav
push ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
call fcn.00497050
add esp, 8
test eax, eax
jne 0x490176
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
mov edx, 0x4c3d40
mov dword [ebp - 0x24], 1
mov ecx, ebx
call fcn.004816c0
push eax
push 1
mov dword [esi + 0x630], eax
lea eax, [ebp - 0x1c]
push 0xc
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
jne 0x4903fc
push dword [esi + 0x630]
push eax
lea eax, [ebp - 0x10]
push 8
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
jne 0x4903fc
mov ebx, dword [ebp - 0x20]
lea ebx, [ebx]
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
cmp dword [eax], 0x20746d66
jne 0x490235
mov eax, dword [esi + 0x618]
mov ebx, edi
test eax, eax
je 0x4901f3
push eax
call fcn.00494034
add esp, 4
lea eax, [ebx + 0x20]
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
test edi, edi
jne 0x490218
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esi + 0x630]
mov dword [esi + 0x618], edi
push 1
push ebx
push edi
call fcn.00495739
add esp, 0x10
cmp eax, 1
jmp 0x490253
lea eax, [ebp - 0x10]
cmp dword [eax], 0x61746164
je 0x49027d
push 1
push edi
push dword [esi + 0x630]
call fcn.00497be2
add esp, 0xc
test eax, eax
jne 0x4903fc
push dword [esi + 0x630]
lea eax, [ebp - 0x10]
push 1
push 8
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
je 0x4901d0
jmp 0x4903fc
cmp dword [esi + 0x618], 0
je 0x4903fc
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0
jne 0x4902b0
mov ecx, dword [ebp - 0x20]
mov edx, eax
call fcn.00482070
push dword [esi + 0x630]
call fcn.00498765
add esp, 4
mov dword [esi + 0x634], eax
mov eax, dword [esi + 0x618]
mov dword [esi + 0x638], 0
movzx ecx, word [eax + 0xc]
mov eax, edi
cdq
idiv ecx
mov eax, dword [esi + 0x61c]
sub edi, edx
mov dword [esi + 0x648], 0
mov dword [esi + 0x63c], edi
test eax, eax
je 0x4902ee
push eax
call fcn.00494034
add esp, 4
mov eax, dword [esi + 0x618]
cmp word [eax], 1
movzx ecx, word [eax + 0xc]
jne 0x49033b
mov eax, 0x113a0
cdq
idiv ecx
mov eax, 0x113a0
mov ecx, ebx
sub eax, edx
mov dword [esi + 0x640], eax
mov dword [esi + 0x644], eax
call fcn.00484ed0
push ebx
push dword [esi + 0x618]
mov dword [esi + 0x61c], eax
push eax
call fcn.0049c4f0
add esp, 0xc
jmp 0x4903f5
mov eax, 0x44e8
cdq
idiv ecx
mov eax, 0x44e8
mov ecx, 0x12
sub eax, edx
mov dword [esi + 0x640], eax
shl eax, 2
mov dword [esi + 0x644], eax
call fcn.00484ed0
mov dword [esi + 0x61c], eax
xorps xmm0, xmm0
mov ecx, 1
movdqu xmmword [eax], xmm0
mov word [eax + 0x10], 0
mov eax, dword [esi + 0x61c]
mov word [eax], cx
mov eax, dword [esi + 0x618]
mov ecx, dword [esi + 0x61c]
mov ax, word [eax + 2]
mov word [ecx + 2], ax
mov eax, dword [esi + 0x618]
mov ecx, dword [esi + 0x61c]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x61c]
mov eax, dword [esi + 0x618]
movzx eax, word [eax + 2]
imul eax, dword [ecx + 4]
add eax, eax
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x618]
mov cx, word [eax + 2]
mov eax, dword [esi + 0x61c]
add cx, cx
mov word [eax + 0xc], cx
mov ecx, 0x10
mov eax, dword [esi + 0x61c]
mov word [eax + 0xe], cx
xor ecx, ecx
mov eax, dword [esi + 0x61c]
mov word [eax + 0x10], cx
mov dword [ebp - 0x24], 0
push dword [esi + 0x630]
call fcn.00494b54
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, dword [ebp - 0x24]
xor ecx, ebp
mov dword [esi + 0x630], 0
pop edi
pop esi
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret