Function at 0x44d566
Capabilities:
Read file on windows

Disassembly:
push 0x328
push 0x4bcbe8
call fcn.004654f0
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.00466ad0
push ebx
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00466ad0
push 0x1e8
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0044d495
add esp, 0x24
test eax, eax
je 0x44ddac
push esi
call fcn.00451684
pop ecx
test eax, eax
lea eax, [ebp - 0x120]
jne 0x44d5dd
push ebx
push esi
push eax
call fcn.00452b01
add esp, 0xc
jmp 0x44d5e4
push eax
call fcn.00450a50
pop ecx
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x32c], ebx
lea eax, [ebp - 0x120]
push eax
call fcn.00451684
pop ecx
test eax, eax
jne 0x44d73b
lea eax, [ebp - 0x120]
push eax
call fcn.00410961
pop ecx
test eax, eax
jne 0x44d684
mov ebx, 0x5c69b0
push ebx
call fcn.00451684
pop ecx
test eax, eax
jne 0x44d706
push ebx
call fcn.00470560
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00452b01
push ebx
lea eax, [ebp - 0x324]
push eax
call fcn.00451949
lea eax, [ebp - 0x324]
push eax
call fcn.00410961
add esp, 0x1c
test eax, eax
je 0x44d6c8
push 0x104
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00452b01
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x120]
push eax
call fcn.00411717
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
jne 0x44d789
cmp dword [0x5c6ab8], esi
jne 0x44ddac
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_GetFileSizeTimeOut___FAILED.
call fcn.0040d511
pop ecx
jmp 0x44ddab
cmp dword [0x5c6ab4], esi
jne 0x44ddac
cmp dword [0x4cc7f0], esi
je 0x44ddac
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.0040d9e1
add esp, 0xc
mov dword [0x4cc7f0], esi
jmp 0x44ddac
cmp dword [0x5c6ab4], esi
jne 0x44ddac
cmp dword [0x4cc7f4], esi
je 0x44ddac
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.0040d9e1
pop ecx
mov dword [0x4cc7f4], esi
jmp 0x44ddab
test ebx, ebx
jne 0x44d789
push 0x222
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0044d495
add esp, 0xc
test eax, eax
je 0x44d781
push edi
call fcn.0044ddbe
pop ecx
test eax, eax
je 0x44d781
push str.LoadSound1
push edi
call fcn.0044ddde
mov dword [edi + 0x104], esi
push edi
call fcn.00450a50
push edi
call fcn.0044eb42
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44ddae
push 0x230
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push 0x489570
lea eax, [ebp - 0x120]
push eax
call fcn.004137d1
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x44d7d3
cmp dword [0x5c6ab8], eax
jne 0x44ddac
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.0040d511
add esp, 0xc
jmp 0x44ddac
xor eax, eax
mov dword [ebp - 0x330], eax
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x52
jne 0x44d82c
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x49
jne 0x44d82c
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x46
jne 0x44d82c
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x46
jne 0x44d82c
xor ebx, ebx
inc ebx
jmp 0x44d835
xor ebx, ebx
inc ebx
mov dword [ebp - 0x330], ebx
push esi
call fcn.0046a470
push esi
call fcn.0046a470
push esi
call fcn.0046a470
push esi
call fcn.0046a470
push esi
call fcn.0046a470
push eax
call fcn.00452608
add esp, 0x18
cmp eax, 0x57
jne 0x44d89a
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x41
jne 0x44d89a
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x56
jne 0x44d89a
push esi
call fcn.0046a470
push eax
call fcn.00452608
pop ecx
pop ecx
cmp eax, 0x45
je 0x44d89e
mov eax, ebx
jmp 0x44d8a4
mov eax, dword [ebp - 0x330]
test eax, eax
je 0x44d8c3
cmp dword [0x5c6ab8], 0
jne 0x44dda5
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_RIFF_Chunk_was_not_found.
jmp 0x44d8ee
push ebx
push str.fmt
push esi
call fcn.004114a1
add esp, 0xc
test eax, eax
jne 0x44d8fa
cmp dword [0x5c6ab8], eax
jne 0x44dda5
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.0040d511
pop ecx
pop ecx
jmp 0x44dda5
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, ebx
jne 0x44dd82
cmp dword [ebp - 0x328], 0x10
jb 0x44dd82
push dword [ebp - 0x328]
push ebx
call fcn.004701d4
pop ecx
pop ecx
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x44d969
cmp dword [0x5c6ab8], eax
jne 0x44dda5
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.0040d511
jmp 0x44dda2
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x44d9af
cmp dword [0x5c6ab8], 0
jne 0x44dd7a
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.0040d511
add esp, 0x10
jmp 0x44dd7a
push ebx
push str.data
push esi
call fcn.004114a1
add esp, 0xc
test eax, eax
jne 0x44d9e6
cmp dword [0x5c6ab8], eax
jne 0x44dd7a
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.0040d511
pop ecx
pop ecx
jmp 0x44dd7a
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, ebx
jne 0x44dd57
cmp dword [ebp - 0x328], 0
je 0x44dd57
push dword [ebp - 0x328]
call fcn.004705eb
pop ecx
mov dword [ebp - 0x330], eax
test eax, eax
jne 0x44da53
cmp dword [0x5c6ab8], eax
jne 0x44dd7a
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.0040d511
jmp 0x44dd77
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x44dab3
cmp dword [0x5c6ab8], 0
jne 0x44da90
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.0040d511
add esp, 0x10
mov eax, dword [ebp - 0x330]
push eax
call fcn.004701df
mov eax, dword [ebp - 0x334]
push eax
call fcn.004701df
push esi
call fcn.00413646
jmp 0x44d7cb
push esi
call fcn.00413646
mov dword [esp], 0x2aa
push str.C:UsersOfficeDocumentsVisual_StudioPAULASound.c
push edi
call fcn.0044d495
add esp, 0xc
test eax, eax
je 0x44dd3a
push edi
call fcn.0044ddbe
pop ecx
test eax, eax
je 0x44dd3a
push str.LoadSound
push edi
call fcn.0044ddde
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.00452b01
mov eax, dword [ebp - 0x32c]
mov dword [edi + 0x104], eax
lea esi, [edi + 0x114]
push 0x20
push 0
push esi
call fcn.00466ad0
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 0x44eb62
push dword [edi + 0x110]
push 0xffffffffffffffff
push esi
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x32c], eax
test eax, eax
je 0x44dc55
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00466ad0
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.0045285b
lea eax, [ebp - 0x220]
push eax
call fcn.00470560
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.00470560
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 [0x5c6bd4], esi
je 0x44dc15
and dword [0x5c6bd8], 0
mov dword [0x5c6bd4], esi
xor eax, eax
jmp 0x44dc20
mov eax, dword [0x5c6bd8]
inc eax
mov dword [0x5c6bd8], eax
cmp dword [0x5c6ab4], 0
jne 0x44dc49
cmp eax, 2
jg 0x44dc49
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.0040d9e1
add esp, 0xc
and dword [edi + 0x434], 0
jmp 0x44dcfc
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 0x44dcfc
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00466ad0
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.0045285b
lea eax, [ebp - 0x220]
push eax
call fcn.00470560
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.00470560
pop ecx
lea ecx, [ebp - 0x220]
add eax, ecx
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x5c6ab4], 0
jne 0x44dcfc
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.0040d9e1
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x44dd2f
push edi
call fcn.0044eb42
pop ecx
mov eax, ebx
jmp 0x44ddae
mov eax, dword [ebp - 0x330]
push eax
call fcn.004701df
mov eax, dword [ebp - 0x334]
push eax
call fcn.004701df
jmp 0x44d6c2
cmp dword [0x5c6ab4], 0
jne 0x44dd7a
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.0040d9e1
add esp, 0xc
push esi
call fcn.00413646
jmp 0x44dd46
cmp dword [0x5c6ab4], 0
jne 0x44dda5
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.0040d9e1
add esp, 0xc
push esi
call fcn.00413646
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