Function at 0x49ed10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x570b30
push 0x4e6b60
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x581900]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x104
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.004e69c0
push 0x104
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.004e69c0
add esp, 0x18
test edi, edi
je 0x49edee
push edi
push dword [0x67b4d8]
call fcn.00491320
add esp, 8
test eax, eax
je 0x49ed96
mov eax, 1
jmp 0x49edf0
cmp edi, dword [0x67b728]
jne 0x49edbc
cmp dword [0x67b730], 0x1e8
jne 0x49edbc
call fcn.004d9850
sub eax, dword [0x67b72c]
cmp eax, 0x3e8
jbe 0x49edee
push 0x1e8
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
push str.Invalid_HSOUND:__p__File:___s___Line:__ld
call fcn.00424fd0
add esp, 0x10
mov dword [0x67b728], edi
mov dword [0x67b730], 0x1e8
call fcn.004d9850
mov dword [0x67b72c], eax
xor eax, eax
test eax, eax
je 0x49f67a
push esi
call fcn.004a73a0
add esp, 4
test eax, eax
lea eax, [ebp - 0x120]
jne 0x49ee1c
push 0x104
push esi
push eax
call fcn.004a9a20
add esp, 0xc
jmp 0x49ee25
push eax
call fcn.004a55e0
add esp, 4
xor esi, esi
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x120]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x49ef98
lea eax, [ebp - 0x120]
push eax
call fcn.004289f0
add esp, 4
test eax, eax
jne 0x49eedb
push 0x67b4e0
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x49ef61
mov ecx, 0x67b4e0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ee78
sub ecx, edx
mov eax, 0x103
sub eax, ecx
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004a9a20
push 0x67b4e0
lea eax, [ebp - 0x224]
push eax
call fcn.004a7ad0
lea eax, [ebp - 0x224]
push eax
call fcn.004289f0
add esp, 0x18
test eax, eax
je 0x49ef23
push 0x104
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004a9a20
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00429b90
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x49f002
cmp dword [0x67b5e8], eax
jne 0x49f67a
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_GetFileSizeTimeOut___FAILED.
call fcn.00424a90
add esp, 8
jmp 0x49f67a
cmp dword [0x67b5e4], esi
jne 0x49f67a
cmp dword [0x581870], esi
je 0x49f67a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
push str.:2:LoadSound___s___FAILED:_The_file_could_not_be_found__Tried_default_directory___s_
call fcn.00424fd0
add esp, 0xc
mov dword [0x581870], esi
jmp 0x49f67a
cmp dword [0x67b5e4], esi
jne 0x49f67a
cmp dword [0x581874], esi
je 0x49f67a
lea eax, [ebp - 0x120]
push eax
push str.:2:LoadSound___s___FAILED:_The_file_could_not_be_found__No_default_directory_has_been_defined.
call fcn.00424fd0
add esp, 8
mov dword [0x581874], esi
jmp 0x49f67a
test esi, esi
jne 0x49f002
push 0x222
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0049ebb0
add esp, 0xc
test eax, eax
je 0x49eff8
test edi, edi
je 0x49eff8
lea esi, [edi + 0x564]
push 0x7f0
push esi
call fcn.00433710
add esp, 8
test eax, eax
je 0x49eff8
push str.LoadSound1
push edi
call fcn.0049f6a0
mov dword [edi + 0x104], 0
push edi
call fcn.004a55e0
push 0x7fa
push esi
call fcn.00433ae0
add esp, 0x14
mov eax, 1
jmp 0x49f67c
push 0x230
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push 0x50a5d0
lea eax, [ebp - 0x120]
push eax
call fcn.0042c170
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x49f052
cmp dword [0x67b5e8], eax
jne 0x49f67a
mov eax, dword [ebp - 0x430]
push eax
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_The_file_of_size__ld_exists_but_cannot_be_opened__
call fcn.00424a90
add esp, 0xc
jmp 0x49f67a
xor eax, eax
mov dword [ebp - 0x42c], eax
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x52
jne 0x49f0aa
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x49
jne 0x49f0aa
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x46
jne 0x49f0aa
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x46
je 0x49f0b4
mov dword [ebp - 0x42c], 1
push esi
call fcn.004e8d30
push esi
call fcn.004e8d30
push esi
call fcn.004e8d30
push esi
call fcn.004e8d30
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 0x18
cmp eax, 0x57
jne 0x49f11c
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x41
jne 0x49f11c
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x56
jne 0x49f11c
push esi
call fcn.004e8d30
push eax
call fcn.004a9170
add esp, 8
cmp eax, 0x45
je 0x49f123
mov eax, 1
jmp 0x49f129
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x49f153
cmp dword [0x67b5e8], 0
jne 0x49f671
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_RIFF_Chunk_was_not_found.
call fcn.00424a90
add esp, 8
jmp 0x49f671
push 1
push str.fmt
push esi
call fcn.00429800
add esp, 0xc
test eax, eax
jne 0x49f18c
cmp dword [0x67b5e8], eax
jne 0x49f671
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.00424a90
add esp, 8
jmp 0x49f671
mov dword [ebp - 0x428], 0
push esi
push 1
push 4
lea eax, [ebp - 0x428]
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp - 0x428]
jne 0x49f653
cmp eax, 0x10
jb 0x49f653
push eax
push 1
call fcn.004eea94
add esp, 8
mov dword [ebp - 0x434], eax
test eax, eax
jne 0x49f1ff
cmp dword [0x67b5e8], eax
jne 0x49f671
push dword [ebp - 0x428]
lea eax, [ebp - 0x120]
push eax
push str.:6:LoadSound___s___FAILED:_Could_not_allocate__ld_bytes_for_the_wave_format_header_struct.
call fcn.00424a90
jmp 0x49f66e
push esi
push dword [ebp - 0x428]
push 1
push eax
call fcn.004e91b7
add esp, 0x10
mov ecx, dword [ebp - 0x428]
cmp eax, ecx
je 0x49f243
cmp dword [0x67b5e8], 0
jne 0x49f63c
push eax
push ecx
lea eax, [ebp - 0x120]
push eax
push str.:7:LoadSound___s___FAILED:_Could_not_read_the_Format_Chunk_of_size__ld_from_the_file.__Only__ld_bytes_could_be_read.
call fcn.00424a90
add esp, 0x10
jmp 0x49f63c
push 1
push str.data
push esi
call fcn.00429800
add esp, 0xc
test eax, eax
jne 0x49f27c
cmp dword [0x67b5e8], eax
jne 0x49f63c
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.00424a90
add esp, 8
jmp 0x49f63c
mov dword [ebp - 0x428], 0
push esi
push 1
push 4
lea eax, [ebp - 0x428]
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp - 0x428]
jne 0x49f61e
test eax, eax
je 0x49f61e
push eax
call fcn.004eec81
add esp, 4
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x49f2ec
cmp dword [0x67b5e8], eax
jne 0x49f63c
push dword [ebp - 0x428]
lea eax, [ebp - 0x120]
push eax
push str.:7:LoadSound___s___FAILED:_The_file_is_too_large_for_memory:_Could_not_allocate__ld_bytes_for_wave_data.
call fcn.00424a90
jmp 0x49f639
push esi
push dword [ebp - 0x428]
push 1
push eax
call fcn.004e91b7
add esp, 0x10
mov ecx, dword [ebp - 0x428]
cmp eax, ecx
je 0x49f34d
cmp dword [0x67b5e8], 0
jne 0x49f327
push eax
push ecx
lea eax, [ebp - 0x120]
push eax
push str.:7:LoadSound___s___FAILED:_Wave_data_size_should_be__ld_but_only__ld_bytes_could_be_read.
call fcn.00424a90
add esp, 0x10
mov eax, dword [ebp - 0x42c]
push eax
call fcn.004eea9f
mov eax, dword [ebp - 0x434]
push eax
call fcn.004eea9f
push esi
call fcn.0042bfc0
add esp, 0xc
jmp 0x49f67a
push esi
call fcn.0042bfc0
push 0x2aa
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0049ebb0
add esp, 0x10
test eax, eax
je 0x49f601
test edi, edi
je 0x49f601
lea esi, [edi + 0x564]
mov dword [ebp - 0x438], esi
push 0x7f0
push esi
call fcn.00433710
add esp, 8
test eax, eax
je 0x49f601
push str.LoadSound
push edi
call fcn.0049f6a0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x42c]
mov dword [edi + 0x108], eax
mov eax, dword [ebp - 0x428]
mov dword [edi + 0x10c], eax
mov eax, dword [ebp - 0x434]
mov dword [edi + 0x110], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push edi
call fcn.004a9a20
add esp, 0xc
mov eax, dword [ebp - 0x430]
mov dword [edi + 0x104], eax
lea ecx, [edi + 0x114]
mov dword [ebp - 0x430], ecx
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [ebp - 0x428]
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x108]
mov dword [ecx], eax
mov dword [edi + 0x120], 0
lea eax, [edi + 0x434]
mov dword [ebp - 0x42c], eax
mov dword [eax], 0
push 0x30000
push edi
push 0x4a10c0
push dword [edi + 0x110]
push 0xffffffffffffffff
push eax
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov edi, eax
test edi, edi
je 0x49f51b
push 0x100
push 0
lea eax, [ebp - 0x324]
push eax
call fcn.004e69c0
push edi
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x324]
push eax
call fcn.004a94b0
add esp, 0x1c
lea ecx, [ebp - 0x324]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49f492
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push eax
lea eax, [ebp - 0x324]
add eax, ecx
push eax
push edi
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x67b704], edi
je 0x49f4cf
mov dword [0x67b708], 0
mov dword [0x67b704], edi
xor eax, eax
jmp 0x49f4da
mov eax, dword [0x67b708]
inc eax
mov dword [0x67b708], eax
cmp dword [0x67b5e4], 0
jne 0x49f503
cmp eax, 2
jg 0x49f503
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x120]
push eax
push str.:4:LoadSound___s___encountered_a_problem:_The_initial_sound_instance_could_not_be_queued_because_waveOutOpen___FAILED:__s
call fcn.00424fd0
add esp, 0xc
mov eax, dword [ebp - 0x42c]
mov dword [eax], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x49f5e9
push 0x20
push dword [ebp - 0x430]
mov eax, dword [ebp - 0x42c]
push dword [eax]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov edi, eax
test edi, edi
je 0x49f5b6
push 0x100
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.004e69c0
push edi
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x424]
push eax
call fcn.004a94b0
add esp, 0x1c
lea ecx, [ebp - 0x424]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49f571
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push eax
lea eax, [ebp - 0x424]
add eax, ecx
push eax
push edi
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x67b5e4], 0
jne 0x49f5b6
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x120]
push eax
push str.:4:LoadSound___s___encountered_a_problem:_The_initial_sound_instance_could_not_be_queued_because_waveOutPrepareHeader___FAILED:__s
call fcn.00424fd0
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x49f5e9
push 0x7fa
push esi
call fcn.00433ae0
add esp, 8
mov eax, 1
jmp 0x49f67c
mov eax, dword [ebp - 0x42c]
push eax
call fcn.004eea9f
mov eax, dword [ebp - 0x434]
push eax
call fcn.004eea9f
add esp, 8
jmp 0x49f67a
cmp dword [0x67b5e4], 0
jne 0x49f63c
push eax
lea eax, [ebp - 0x120]
push eax
push str.:6:LoadSound___s___FAILED:_The_file_format_is_invalid._The_Data_Chunk_size___ld__could_not_be_read.
call fcn.00424fd0
add esp, 0xc
push esi
call fcn.0042bfc0
mov eax, dword [ebp - 0x434]
push eax
call fcn.004eea9f
add esp, 8
jmp 0x49f67a
cmp dword [0x67b5e4], 0
jne 0x49f671
push eax
lea eax, [ebp - 0x120]
push eax
push str.:6:LoadSound___s___FAILED:_The_file_format_is_invalid._The_Format_Chunk_size___ld__could_not_be_read.
call fcn.00424fd0
add esp, 0xc
push esi
call fcn.0042bfc0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret