Function at 0x49a503
Capabilities:
Read file on windows

Disassembly:
push 0x328
push 0x587c80
call fcn.004e3670
mov edi, dword [ebp + 8]
mov dword [ebp - 0x338], edi
mov esi, dword [ebp + 0xc]
mov ebx, 0x104
push ebx
push 0
lea eax, [ebp - 0x324]
push eax
call fcn.004e4da0
push ebx
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.004e4da0
push 0x1e8
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Sound.c
push edi
call fcn.0049a432
add esp, 0x24
test eax, eax
je 0x49ad1e
push esi
call fcn.0049f486
pop ecx
test eax, eax
lea eax, [ebp - 0x120]
jne 0x49a57a
push ebx
push esi
push eax
call fcn.004a11a5
add esp, 0xc
jmp 0x49a581
push eax
call fcn.0049e2d6
pop ecx
xor ebx, ebx
mov dword [ebp - 0x32c], ebx
lea eax, [ebp - 0x120]
push eax
call fcn.0049f486
pop ecx
test eax, eax
jne 0x49a6b0
lea eax, [ebp - 0x120]
push eax
call fcn.0042916f
pop ecx
test eax, eax
jne 0x49a61f
mov esi, 0x695b20
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x49a691
push esi
call fcn.004ee800
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004a11a5
push esi
lea eax, [ebp - 0x324]
push eax
call fcn.0049fcaa
lea eax, [ebp - 0x324]
push eax
call fcn.0042916f
add esp, 0x1c
test eax, eax
je 0x49a665
push 0x104
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004a11a5
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.0042aa40
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
jne 0x49a6fe
cmp dword [0x695c28], eax
jne 0x49ad1e
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_GetFileSizeTimeOut___FAILED.
call fcn.004255b9
pop ecx
jmp 0x49ad1d
cmp dword [0x695c24], ebx
jne 0x49ad1e
lea eax, [ebp - 0x324]
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.00425c08
add esp, 0xc
jmp 0x49ad1e
cmp dword [0x695c24], ebx
jne 0x49ad1e
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.00425c08
jmp 0x49a65f
test ebx, ebx
jne 0x49a6fe
push 0x21a
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Sound.c
push edi
call fcn.0049a432
add esp, 0xc
test eax, eax
je 0x49a6f6
push edi
call fcn.0049ad30
pop ecx
test eax, eax
je 0x49a6f6
push str.LoadSound1
push edi
call fcn.0049ad50
and dword [edi + 0x104], ebx
push edi
call fcn.0049e2d6
push edi
call fcn.0049c16f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49ad20
push 0x228
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Sound.c
push 0x50965c
lea eax, [ebp - 0x120]
push eax
call fcn.0042d2de
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x49a745
cmp dword [0x695c28], eax
jne 0x49ad1e
push ebx
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_The_file_of_size__ld_exists_but_cannot_be_opened__
call fcn.004255b9
jmp 0x49a689
xor eax, eax
mov dword [ebp - 0x330], eax
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x52
jne 0x49a79e
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x49
jne 0x49a79e
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x46
jne 0x49a79e
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x46
jne 0x49a79e
xor ebx, ebx
inc ebx
jmp 0x49a7a7
xor ebx, ebx
inc ebx
mov dword [ebp - 0x330], ebx
push esi
call fcn.004e8746
push esi
call fcn.004e8746
push esi
call fcn.004e8746
push esi
call fcn.004e8746
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
add esp, 0x18
cmp eax, 0x57
jne 0x49a80c
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x41
jne 0x49a80c
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x56
jne 0x49a80c
push esi
call fcn.004e8746
push eax
call fcn.004a0b88
pop ecx
pop ecx
cmp eax, 0x45
je 0x49a810
mov eax, ebx
jmp 0x49a816
mov eax, dword [ebp - 0x330]
test eax, eax
je 0x49a835
cmp dword [0x695c28], 0
jne 0x49ad17
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_RIFF_Chunk_was_not_found.
jmp 0x49a860
push ebx
push str.fmt
push esi
call fcn.00429caf
add esp, 0xc
test eax, eax
jne 0x49a86c
cmp dword [0x695c28], eax
jne 0x49ad17
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.004255b9
pop ecx
pop ecx
jmp 0x49ad17
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, ebx
jne 0x49acf4
cmp dword [ebp - 0x328], 0x10
jb 0x49acf4
push dword [ebp - 0x328]
push ebx
call fcn.004ee464
pop ecx
pop ecx
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x49a8db
cmp dword [0x695c28], eax
jne 0x49ad17
push dword [ebp - 0x328]
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.004255b9
jmp 0x49ad14
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x49a921
cmp dword [0x695c28], 0
jne 0x49acec
push eax
push dword [ebp - 0x328]
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.004255b9
add esp, 0x10
jmp 0x49acec
push ebx
push str.data
push esi
call fcn.00429caf
add esp, 0xc
test eax, eax
jne 0x49a958
cmp dword [0x695c28], eax
jne 0x49acec
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.004255b9
pop ecx
pop ecx
jmp 0x49acec
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, ebx
jne 0x49acc9
cmp dword [ebp - 0x328], 0
je 0x49acc9
push dword [ebp - 0x328]
call fcn.004ee88b
pop ecx
mov dword [ebp - 0x330], eax
test eax, eax
jne 0x49a9c5
cmp dword [0x695c28], eax
jne 0x49acec
push dword [ebp - 0x328]
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.004255b9
jmp 0x49ace9
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x49aa25
cmp dword [0x695c28], 0
jne 0x49aa02
push eax
push dword [ebp - 0x328]
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.004255b9
add esp, 0x10
mov eax, dword [ebp - 0x330]
push eax
call fcn.004ee46f
mov eax, dword [ebp - 0x334]
push eax
call fcn.004ee46f
push esi
call fcn.0042d153
jmp 0x49a689
push esi
call fcn.0042d153
mov dword [esp], 0x2a2
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Sound.c
push edi
call fcn.0049a432
add esp, 0xc
test eax, eax
je 0x49acac
push edi
call fcn.0049ad30
pop ecx
test eax, eax
je 0x49acac
push str.LoadSound
push edi
call fcn.0049ad50
pop ecx
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x330]
mov dword [edi + 0x108], eax
mov eax, dword [ebp - 0x328]
mov dword [edi + 0x10c], eax
mov eax, dword [ebp - 0x334]
mov dword [edi + 0x110], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push edi
call fcn.004a11a5
mov eax, dword [ebp - 0x32c]
mov dword [edi + 0x104], eax
lea esi, [edi + 0x114]
push 0x20
push 0
push esi
call fcn.004e4da0
add esp, 0x18
mov eax, dword [ebp - 0x328]
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x108]
mov dword [esi], eax
and dword [edi + 0x120], 0
lea esi, [edi + 0x434]
and dword [esi], 0
push 0x30000
push edi
push 0x49c18f
push dword [edi + 0x110]
push 0xffffffffffffffff
push esi
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x32c], eax
test eax, eax
je 0x49abc7
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004e4da0
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.004a0ddb
lea eax, [ebp - 0x220]
push eax
call fcn.004ee800
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004ee800
pop ecx
lea ecx, [ebp - 0x220]
add eax, ecx
push eax
mov esi, dword [ebp - 0x32c]
push esi
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x695d44], esi
je 0x49ab87
and dword [0x695d48], 0
mov dword [0x695d44], esi
xor eax, eax
jmp 0x49ab92
mov eax, dword [0x695d48]
inc eax
mov dword [0x695d48], eax
cmp dword [0x695c24], 0
jne 0x49abbb
cmp eax, 2
jg 0x49abbb
lea eax, [ebp - 0x220]
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.00425c08
add esp, 0xc
and dword [edi + 0x434], 0
jmp 0x49ac6e
push 0x20
lea eax, [edi + 0x114]
push eax
push dword [esi]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov dword [ebp - 0x32c], eax
test eax, eax
je 0x49ac6e
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004e4da0
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.004a0ddb
lea eax, [ebp - 0x220]
push eax
call fcn.004ee800
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004ee800
pop ecx
lea ecx, [ebp - 0x220]
add eax, ecx
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x695c24], 0
jne 0x49ac6e
lea eax, [ebp - 0x220]
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.00425c08
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x49aca1
push edi
call fcn.0049c16f
pop ecx
mov eax, ebx
jmp 0x49ad20
mov eax, dword [ebp - 0x330]
push eax
call fcn.004ee46f
mov eax, dword [ebp - 0x334]
push eax
call fcn.004ee46f
jmp 0x49a65f
cmp dword [0x695c24], 0
jne 0x49acec
push dword [ebp - 0x328]
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.00425c08
add esp, 0xc
push esi
call fcn.0042d153
jmp 0x49acb8
cmp dword [0x695c24], 0
jne 0x49ad17
push dword [ebp - 0x328]
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.00425c08
add esp, 0xc
push esi
call fcn.0042d153
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret