Function at 0x4bf8db
Capabilities:
Read file on windows

Disassembly:
push 0x434
push 0x5c0b58
call fcn.0052a9ec
mov esi, ecx
mov dword [ebp - 0x444], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x440], eax
xor edi, edi
mov dword [ebp - 0x438], edi
mov byte [ebp - 0x434], 0
mov ebx, 0x103
push ebx
push edi
lea eax, [ebp - 0x433]
push eax
call fcn.005117f0
add esp, 0xc
mov byte [ebp - 0x12c], 0
push ebx
push edi
lea eax, [ebp - 0x12b]
push eax
call fcn.005117f0
add esp, 0xc
mov edi, 0x1e8
call fcn.004c16ab
test eax, eax
je 0x4c00af
mov edx, dword [ebp - 0x440]
call fcn.004c3b34
test eax, eax
lea eax, [ebp - 0x12c]
jne 0x4bf970
push dword [ebp - 0x440]
lea ecx, [ebx + 1]
call fcn.004c3b66
pop ecx
jmp 0x4bf975
call fcn.004c3ab2
and dword [ebp - 0x440], 0
lea edx, [ebp - 0x12c]
call fcn.004c3b34
test eax, eax
jne 0x4bfa85
lea edi, [ebp - 0x12c]
call fcn.0042ad00
test eax, eax
jne 0x4bf9fc
mov edi, 0x6d6b70
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x4bfa60
push edi
call fcn.005120b0
pop ecx
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x434]
call fcn.004c3b66
pop ecx
mov edx, edi
mov ecx, eax
call fcn.004c40f5
lea edi, [ebp - 0x434]
call fcn.0042ad00
test eax, eax
je 0x4bfa33
mov eax, edi
push eax
mov ecx, 0x104
lea eax, [ebp - 0x12c]
call fcn.004c3b66
pop ecx
push 0
lea ecx, [ebp - 0x12c]
call fcn.0042b397
pop ecx
mov dword [ebp - 0x440], eax
test eax, eax
jne 0x4bfa85
cmp dword [0x6d6c78], eax
jne 0x4c00af
lea eax, [ebp - 0x12c]
push eax
push str.:5:LoadSound___s___FAILED:_GetFileSizeTimeOut___FAILED.
call fcn.004265da
jmp 0x4bfa7e
cmp dword [0x6d6c74], 0
jne 0x4c00af
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.:2:LoadSound___s___FAILED:_The_file_could_not_be_found__Tried_default_directory___s_
call fcn.00426c01
add esp, 0xc
jmp 0x4c00af
cmp dword [0x6d6c74], 0
jne 0x4c00af
lea eax, [ebp - 0x12c]
push eax
push str.:2:LoadSound___s___FAILED:_The_file_could_not_be_found__No_default_directory_has_been_defined.
call fcn.00426c01
pop ecx
pop ecx
jmp 0x4c00af
xor ebx, ebx
cmp dword [ebp - 0x440], ebx
jne 0x4bfacf
mov edi, 0x21a
call fcn.004c16ab
test eax, eax
je 0x4bfac7
mov eax, esi
call fcn.004c170d
test eax, eax
je 0x4bfac7
push str.LoadSound1
mov ecx, esi
call fcn.004bf404
pop ecx
mov dword [esi + 0x104], ebx
mov eax, esi
call fcn.004c3ab2
call fcn.004c1725
xor eax, eax
inc eax
jmp 0x4c00b1
push 0x228
push str..Sound.c
mov edx, 0x530488
lea ecx, [ebp - 0x12c]
call fcn.0042d2c6
pop ecx
pop ecx
mov edi, eax
cmp edi, ebx
jne 0x4bfb19
cmp dword [0x6d6c78], ebx
jne 0x4c00af
push dword [ebp - 0x440]
lea eax, [ebp - 0x12c]
push eax
push str.:5:LoadSound___s___FAILED:_The_file_of_size__ld_exists_but_cannot_be_opened__
call fcn.004265da
jmp 0x4bfa58
mov dword [ebp - 0x43c], ebx
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x52
jne 0x4bfb63
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x49
jne 0x4bfb63
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x46
jne 0x4bfb63
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x46
je 0x4bfb6d
mov dword [ebp - 0x43c], 1
xor ebx, ebx
inc ebx
push edi
call fcn.0051344f
pop ecx
push edi
call fcn.0051344f
pop ecx
push edi
call fcn.0051344f
pop ecx
push edi
call fcn.0051344f
pop ecx
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x57
jne 0x4bfbd0
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x41
jne 0x4bfbd0
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x56
jne 0x4bfbd0
push edi
call fcn.0051344f
pop ecx
call fcn.004c39b2
cmp eax, 0x45
je 0x4bfbd6
mov dword [ebp - 0x43c], ebx
cmp dword [ebp - 0x43c], 0
je 0x4bfc04
cmp dword [0x6d6c78], 0
jne 0x4c00a8
lea eax, [ebp - 0x12c]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_RIFF_Chunk_was_not_found.
call fcn.004265da
pop ecx
pop ecx
jmp 0x4c00a8
push edi
mov eax, str.fmt
call fcn.0042c9bb
pop ecx
test eax, eax
jne 0x4bfc2e
cmp dword [0x6d6c78], eax
jne 0x4c00a8
lea eax, [ebp - 0x12c]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
jmp 0x4bfbf8
and dword [ebp - 0x438], 0
push edi
push ebx
push 4
lea eax, [ebp - 0x438]
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, ebx
jne 0x4c0085
cmp dword [ebp - 0x438], 0x10
jb 0x4c0085
push dword [ebp - 0x438]
push ebx
call fcn.00511988
pop ecx
pop ecx
mov dword [ebp - 0x43c], eax
test eax, eax
jne 0x4bfc9d
cmp dword [0x6d6c78], eax
jne 0x4c00a8
push dword [ebp - 0x438]
lea eax, [ebp - 0x12c]
push eax
push str.:6:LoadSound___s___FAILED:_Could_not_allocate__ld_bytes_for_the_wave_format_header_struct.
call fcn.004265da
jmp 0x4c00a5
push edi
push dword [ebp - 0x438]
push ebx
push dword [ebp - 0x43c]
call fcn.00511c63
add esp, 0x10
cmp eax, dword [ebp - 0x438]
je 0x4bfcf6
cmp dword [0x6d6c78], 0
jne 0x4bfcdf
push eax
push dword [ebp - 0x438]
lea eax, [ebp - 0x12c]
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.004265da
add esp, 0x10
mov ecx, edi
call fcn.0042d70e
push dword [ebp - 0x43c]
call fcn.00511758
jmp 0x4bfa7f
push edi
mov eax, str.data
call fcn.0042c9bb
pop ecx
test eax, eax
jne 0x4bfd23
cmp dword [0x6d6c78], eax
jne 0x4bfcdf
lea eax, [ebp - 0x12c]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.004265da
pop ecx
pop ecx
jmp 0x4bfcdf
and dword [ebp - 0x438], 0
push edi
push ebx
push 4
lea eax, [ebp - 0x438]
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, ebx
jne 0x4c005c
cmp dword [ebp - 0x438], 0
je 0x4c005c
push dword [ebp - 0x438]
call fcn.00513703
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4bfd8f
cmp dword [0x6d6c78], eax
jne 0x4bfcdf
push dword [ebp - 0x438]
lea eax, [ebp - 0x12c]
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.004265da
add esp, 0xc
jmp 0x4bfcdf
push edi
push dword [ebp - 0x438]
push 1
push ebx
call fcn.00511c63
add esp, 0x10
cmp eax, dword [ebp - 0x438]
je 0x4bfde4
cmp dword [0x6d6c78], 0
jne 0x4bfdcd
push eax
push dword [ebp - 0x438]
lea eax, [ebp - 0x12c]
push eax
push str.:7:LoadSound___s___FAILED:_Wave_data_size_should_be__ld_but_only__ld_bytes_could_be_read.
call fcn.004265da
add esp, 0x10
push ebx
call fcn.00511758
pop ecx
push dword [ebp - 0x43c]
call fcn.00511758
jmp 0x4bfbfe
mov ecx, edi
call fcn.0042d70e
mov edi, 0x2a2
call fcn.004c16ab
test eax, eax
je 0x4c0050
mov eax, esi
call fcn.004c170d
test eax, eax
je 0x4c0050
push str.LoadSound
mov ecx, esi
call fcn.004bf404
pop ecx
and dword [ebp - 4], 0
mov dword [esi + 0x108], ebx
mov eax, dword [ebp - 0x438]
mov dword [esi + 0x10c], eax
mov eax, dword [ebp - 0x43c]
mov dword [esi + 0x110], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x104
mov eax, esi
call fcn.004c3b66
pop ecx
mov eax, dword [ebp - 0x440]
mov dword [esi + 0x104], eax
lea ebx, [esi + 0x114]
push 0x20
push 0
push ebx
call fcn.005117f0
add esp, 0xc
mov eax, dword [ebp - 0x438]
mov dword [esi + 0x118], eax
mov eax, dword [esi + 0x108]
mov dword [ebx], eax
and dword [esi + 0x120], 0
lea edi, [esi + 0x434]
and dword [edi], 0
push 0x30000
push esi
push 0x4c15e5
push dword [esi + 0x110]
push 0xffffffffffffffff
push edi
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x440], eax
test eax, eax
je 0x4bff79
mov byte [ebp - 0x32c], 0
push 0xff
push 0
lea eax, [ebp - 0x32b]
push eax
call fcn.005117f0
add esp, 0xc
mov ebx, dword [ebp - 0x440]
push ebx
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x32c]
push eax
call fcn.004c53b7
lea eax, [ebp - 0x32c]
push eax
call fcn.005120b0
add esp, 0x14
mov ecx, 0x100
sub ecx, eax
push ecx
lea eax, [ebp - 0x32c]
push eax
call fcn.005120b0
pop ecx
lea eax, [ebp + eax - 0x32c]
push eax
push ebx
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x6d6c8c], ebx
je 0x4bff3e
and dword [0x6d6d94], 0
mov dword [0x6d6c8c], ebx
jmp 0x4bff44
inc dword [0x6d6d94]
cmp dword [0x6d6c74], 0
jne 0x4bff71
cmp dword [0x6d6d94], 2
jg 0x4bff71
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.:4:LoadSound___s___encountered_a_problem:_The_initial_sound_instance_could_not_be_queued_because_waveOutOpen___FAILED:__s
call fcn.00426c01
add esp, 0xc
and dword [edi], 0
jmp 0x4c0019
push 0x20
push ebx
push dword [edi]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov edi, eax
test edi, edi
je 0x4c0019
mov byte [ebp - 0x22c], 0
push 0xff
push 0
lea eax, [ebp - 0x22b]
push eax
call fcn.005117f0
add esp, 0xc
push edi
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x22c]
push eax
call fcn.004c53b7
lea eax, [ebp - 0x22c]
push eax
call fcn.005120b0
add esp, 0x14
mov ecx, 0x100
sub ecx, eax
push ecx
lea eax, [ebp - 0x22c]
push eax
call fcn.005120b0
pop ecx
lea eax, [ebp + eax - 0x22c]
push eax
push edi
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x6d6c74], 0
jne 0x4c0019
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.:4:LoadSound___s___encountered_a_problem:_The_initial_sound_instance_could_not_be_queued_because_waveOutPrepareHeader___FAILED:__s
call fcn.00426c01
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c0049
mov eax, esi
jmp 0x4bfac2
push ebx
call fcn.00511758
pop ecx
jmp 0x4bfce6
cmp dword [0x6d6c74], 0
jne 0x4bfcdf
push dword [ebp - 0x438]
lea eax, [ebp - 0x12c]
push eax
push str.:6:LoadSound___s___FAILED:_The_file_format_is_invalid._The_Data_Chunk_size___ld__could_not_be_read.
call fcn.00426c01
jmp 0x4bfd87
cmp dword [0x6d6c74], 0
jne 0x4c00a8
push dword [ebp - 0x438]
lea eax, [ebp - 0x12c]
push eax
push str.:6:LoadSound___s___FAILED:_The_file_format_is_invalid._The_Format_Chunk_size___ld__could_not_be_read.
call fcn.00426c01
add esp, 0xc
mov ecx, edi
call fcn.0042d70e
xor eax, eax
call fcn.0052aa34
ret