Function at 0x487430
Capabilities:
Read file on windows

Disassembly:
push 0x328
push 0x54f128
call fcn.004c2160
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.004c37f0
push ebx
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.004c37f0
push 0x1e8
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0048735f
add esp, 0x24
test eax, eax
je 0x487c76
push esi
call fcn.0048c30a
pop ecx
test eax, eax
lea eax, [ebp - 0x120]
jne 0x4874a7
push ebx
push esi
push eax
call fcn.0048dd2a
add esp, 0xc
jmp 0x4874ae
push eax
call fcn.0048b21b
pop ecx
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x32c], ebx
lea eax, [ebp - 0x120]
push eax
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x487605
lea eax, [ebp - 0x120]
push eax
call fcn.0041fc00
pop ecx
test eax, eax
jne 0x48754e
mov ebx, 0x6599a8
push ebx
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x4875d0
push ebx
call fcn.004cd280
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0048dd2a
push ebx
lea eax, [ebp - 0x324]
push eax
call fcn.0048c896
lea eax, [ebp - 0x324]
push eax
call fcn.0041fc00
add esp, 0x1c
test eax, eax
je 0x487592
push 0x104
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0048dd2a
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x120]
push eax
call fcn.004209b8
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
jne 0x487653
cmp dword [0x659ab0], esi
jne 0x487c76
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_GetFileSizeTimeOut___FAILED.
call fcn.0041c80a
pop ecx
jmp 0x487c75
cmp dword [0x659aac], esi
jne 0x487c76
cmp dword [0x55f870], esi
je 0x487c76
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.0041cce9
add esp, 0xc
mov dword [0x55f870], esi
jmp 0x487c76
cmp dword [0x659aac], esi
jne 0x487c76
cmp dword [0x55f874], esi
je 0x487c76
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.0041cce9
pop ecx
mov dword [0x55f874], esi
jmp 0x487c75
test ebx, ebx
jne 0x487653
push 0x222
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0048735f
add esp, 0xc
test eax, eax
je 0x48764b
push edi
call fcn.00487c88
pop ecx
test eax, eax
je 0x48764b
push str.LoadSound1
push edi
call fcn.00487ca8
mov dword [edi + 0x104], esi
push edi
call fcn.0048b21b
push edi
call fcn.00488e9f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x487c78
push 0x230
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push 0x4e75e0
lea eax, [ebp - 0x120]
push eax
call fcn.00422a3e
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x48769d
cmp dword [0x659ab0], eax
jne 0x487c76
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.0041c80a
add esp, 0xc
jmp 0x487c76
xor eax, eax
mov dword [ebp - 0x330], eax
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x52
jne 0x4876f6
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x49
jne 0x4876f6
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x46
jne 0x4876f6
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x46
jne 0x4876f6
xor ebx, ebx
inc ebx
jmp 0x4876ff
xor ebx, ebx
inc ebx
mov dword [ebp - 0x330], ebx
push esi
call fcn.004c7190
push esi
call fcn.004c7190
push esi
call fcn.004c7190
push esi
call fcn.004c7190
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
add esp, 0x18
cmp eax, 0x57
jne 0x487764
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x41
jne 0x487764
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x56
jne 0x487764
push esi
call fcn.004c7190
push eax
call fcn.0048d70d
pop ecx
pop ecx
cmp eax, 0x45
je 0x487768
mov eax, ebx
jmp 0x48776e
mov eax, dword [ebp - 0x330]
test eax, eax
je 0x48778d
cmp dword [0x659ab0], 0
jne 0x487c6f
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_RIFF_Chunk_was_not_found.
jmp 0x4877b8
push ebx
push str.fmt
push esi
call fcn.00420742
add esp, 0xc
test eax, eax
jne 0x4877c4
cmp dword [0x659ab0], eax
jne 0x487c6f
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.0041c80a
pop ecx
pop ecx
jmp 0x487c6f
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, ebx
jne 0x487c4c
cmp dword [ebp - 0x328], 0x10
jb 0x487c4c
push dword [ebp - 0x328]
push ebx
call fcn.004ccef4
pop ecx
pop ecx
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x487833
cmp dword [0x659ab0], eax
jne 0x487c6f
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.0041c80a
jmp 0x487c6c
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x487879
cmp dword [0x659ab0], 0
jne 0x487c44
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.0041c80a
add esp, 0x10
jmp 0x487c44
push ebx
push str.data
push esi
call fcn.00420742
add esp, 0xc
test eax, eax
jne 0x4878b0
cmp dword [0x659ab0], eax
jne 0x487c44
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.0041c80a
pop ecx
pop ecx
jmp 0x487c44
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, ebx
jne 0x487c21
cmp dword [ebp - 0x328], 0
je 0x487c21
push dword [ebp - 0x328]
call fcn.004cd30b
pop ecx
mov dword [ebp - 0x330], eax
test eax, eax
jne 0x48791d
cmp dword [0x659ab0], eax
jne 0x487c44
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.0041c80a
jmp 0x487c41
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x48797d
cmp dword [0x659ab0], 0
jne 0x48795a
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.0041c80a
add esp, 0x10
mov eax, dword [ebp - 0x330]
push eax
call fcn.004cceff
mov eax, dword [ebp - 0x334]
push eax
call fcn.004cceff
push esi
call fcn.004228b3
jmp 0x487695
push esi
call fcn.004228b3
mov dword [esp], 0x2aa
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0048735f
add esp, 0xc
test eax, eax
je 0x487c04
push edi
call fcn.00487c88
pop ecx
test eax, eax
je 0x487c04
push str.LoadSound
push edi
call fcn.00487ca8
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.0048dd2a
mov eax, dword [ebp - 0x32c]
mov dword [edi + 0x104], eax
lea esi, [edi + 0x114]
push 0x20
push 0
push esi
call fcn.004c37f0
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 0x488ebf
push dword [edi + 0x110]
push 0xffffffffffffffff
push esi
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x32c], eax
test eax, eax
je 0x487b1f
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004c37f0
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.0048d960
lea eax, [ebp - 0x220]
push eax
call fcn.004cd280
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004cd280
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 [0x659bcc], esi
je 0x487adf
and dword [0x659bd0], 0
mov dword [0x659bcc], esi
xor eax, eax
jmp 0x487aea
mov eax, dword [0x659bd0]
inc eax
mov dword [0x659bd0], eax
cmp dword [0x659aac], 0
jne 0x487b13
cmp eax, 2
jg 0x487b13
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.0041cce9
add esp, 0xc
and dword [edi + 0x434], 0
jmp 0x487bc6
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 0x487bc6
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004c37f0
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.0048d960
lea eax, [ebp - 0x220]
push eax
call fcn.004cd280
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004cd280
pop ecx
lea ecx, [ebp - 0x220]
add eax, ecx
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x659aac], 0
jne 0x487bc6
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.0041cce9
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x487bf9
push edi
call fcn.00488e9f
pop ecx
mov eax, ebx
jmp 0x487c78
mov eax, dword [ebp - 0x330]
push eax
call fcn.004cceff
mov eax, dword [ebp - 0x334]
push eax
call fcn.004cceff
jmp 0x48758c
cmp dword [0x659aac], 0
jne 0x487c44
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.0041cce9
add esp, 0xc
push esi
call fcn.004228b3
jmp 0x487c10
cmp dword [0x659aac], 0
jne 0x487c6f
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.0041cce9
add esp, 0xc
push esi
call fcn.004228b3
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