Function at 0x42b304
Capabilities:
Read file on windows

Disassembly:
push 0x328
push 0x482268
call fcn.0043c630
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.0043dc10
push ebx
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.0043dc10
push 0x1e8
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateSound.c
push edi
call fcn.0042b233
add esp, 0x24
test eax, eax
je 0x42bb4a
push esi
call fcn.0042da83
pop ecx
test eax, eax
lea eax, [ebp - 0x120]
jne 0x42b37b
push ebx
push esi
push eax
call fcn.0042ee2a
add esp, 0xc
jmp 0x42b382
push eax
call fcn.0042d010
pop ecx
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x32c], ebx
lea eax, [ebp - 0x120]
push eax
call fcn.0042da83
pop ecx
test eax, eax
jne 0x42b4d9
lea eax, [ebp - 0x120]
push eax
call fcn.0040bca2
pop ecx
test eax, eax
jne 0x42b422
mov ebx, 0x58c650
push ebx
call fcn.0042da83
pop ecx
test eax, eax
jne 0x42b4a4
push ebx
call fcn.004476a0
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0042ee2a
push ebx
lea eax, [ebp - 0x324]
push eax
call fcn.0042dce1
lea eax, [ebp - 0x324]
push eax
call fcn.0040bca2
add esp, 0x1c
test eax, eax
je 0x42b466
push 0x104
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0042ee2a
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x120]
push eax
call fcn.0040c98f
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
jne 0x42b527
cmp dword [0x58c758], esi
jne 0x42bb4a
lea eax, [ebp - 0x120]
push eax
push str.:5:LoadSound___s___FAILED:_GetFileSizeTimeOut___FAILED.
call fcn.0040906e
pop ecx
jmp 0x42bb49
cmp dword [0x58c754], esi
jne 0x42bb4a
cmp dword [0x492778], esi
je 0x42bb4a
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.0040953d
add esp, 0xc
mov dword [0x492778], esi
jmp 0x42bb4a
cmp dword [0x58c754], esi
jne 0x42bb4a
cmp dword [0x49277c], esi
je 0x42bb4a
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.0040953d
pop ecx
mov dword [0x49277c], esi
jmp 0x42bb49
test ebx, ebx
jne 0x42b527
push 0x222
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateSound.c
push edi
call fcn.0042b233
add esp, 0xc
test eax, eax
je 0x42b51f
push edi
call fcn.0042bb5c
pop ecx
test eax, eax
je 0x42b51f
push str.LoadSound1
push edi
call fcn.0042bb7c
mov dword [edi + 0x104], esi
push edi
call fcn.0042d010
push edi
call fcn.0042c67a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42bb4c
push 0x230
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateSound.c
push 0x46051c
lea eax, [ebp - 0x120]
push eax
call fcn.0040e692
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x42b571
cmp dword [0x58c758], eax
jne 0x42bb4a
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.0040906e
add esp, 0xc
jmp 0x42bb4a
xor eax, eax
mov dword [ebp - 0x330], eax
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x52
jne 0x42b5ca
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x49
jne 0x42b5ca
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x46
jne 0x42b5ca
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x46
jne 0x42b5ca
xor ebx, ebx
inc ebx
jmp 0x42b5d3
xor ebx, ebx
inc ebx
mov dword [ebp - 0x330], ebx
push esi
call fcn.004415b0
push esi
call fcn.004415b0
push esi
call fcn.004415b0
push esi
call fcn.004415b0
push esi
call fcn.004415b0
push eax
call fcn.0042e931
add esp, 0x18
cmp eax, 0x57
jne 0x42b638
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x41
jne 0x42b638
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x56
jne 0x42b638
push esi
call fcn.004415b0
push eax
call fcn.0042e931
pop ecx
pop ecx
cmp eax, 0x45
je 0x42b63c
mov eax, ebx
jmp 0x42b642
mov eax, dword [ebp - 0x330]
test eax, eax
je 0x42b661
cmp dword [0x58c758], 0
jne 0x42bb43
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_RIFF_Chunk_was_not_found.
jmp 0x42b68c
push ebx
push str.fmt
push esi
call fcn.0040c719
add esp, 0xc
test eax, eax
jne 0x42b698
cmp dword [0x58c758], eax
jne 0x42bb43
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.0040906e
pop ecx
pop ecx
jmp 0x42bb43
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, ebx
jne 0x42bb20
cmp dword [ebp - 0x328], 0x10
jb 0x42bb20
push dword [ebp - 0x328]
push ebx
call fcn.00447314
pop ecx
pop ecx
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x42b707
cmp dword [0x58c758], eax
jne 0x42bb43
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.0040906e
jmp 0x42bb40
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x42b74d
cmp dword [0x58c758], 0
jne 0x42bb18
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.0040906e
add esp, 0x10
jmp 0x42bb18
push ebx
push str.data
push esi
call fcn.0040c719
add esp, 0xc
test eax, eax
jne 0x42b784
cmp dword [0x58c758], eax
jne 0x42bb18
lea eax, [ebp - 0x120]
push eax
push str.LoadSound___s___FAILED:_The_wave_file_is_invalid:_The_Format_Chunk_was_not_found.
call fcn.0040906e
pop ecx
pop ecx
jmp 0x42bb18
and dword [ebp - 0x328], 0
push esi
push ebx
push 4
lea eax, [ebp - 0x328]
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, ebx
jne 0x42baf5
cmp dword [ebp - 0x328], 0
je 0x42baf5
push dword [ebp - 0x328]
call fcn.0044772b
pop ecx
mov dword [ebp - 0x330], eax
test eax, eax
jne 0x42b7f1
cmp dword [0x58c758], eax
jne 0x42bb18
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.0040906e
jmp 0x42bb15
push esi
push dword [ebp - 0x328]
push ebx
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, dword [ebp - 0x328]
je 0x42b851
cmp dword [0x58c758], 0
jne 0x42b82e
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.0040906e
add esp, 0x10
mov eax, dword [ebp - 0x330]
push eax
call fcn.0044731f
mov eax, dword [ebp - 0x334]
push eax
call fcn.0044731f
push esi
call fcn.0040e507
jmp 0x42b569
push esi
call fcn.0040e507
mov dword [esp], 0x2aa
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateSound.c
push edi
call fcn.0042b233
add esp, 0xc
test eax, eax
je 0x42bad8
push edi
call fcn.0042bb5c
pop ecx
test eax, eax
je 0x42bad8
push str.LoadSound
push edi
call fcn.0042bb7c
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.0042ee2a
mov eax, dword [ebp - 0x32c]
mov dword [edi + 0x104], eax
lea esi, [edi + 0x114]
push 0x20
push 0
push esi
call fcn.0043dc10
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 0x42c69a
push dword [edi + 0x110]
push 0xffffffffffffffff
push esi
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x32c], eax
test eax, eax
je 0x42b9f3
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0043dc10
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.0042eb84
lea eax, [ebp - 0x220]
push eax
call fcn.004476a0
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004476a0
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 [0x58c874], esi
je 0x42b9b3
and dword [0x58c878], 0
mov dword [0x58c874], esi
xor eax, eax
jmp 0x42b9be
mov eax, dword [0x58c878]
inc eax
mov dword [0x58c878], eax
cmp dword [0x58c754], 0
jne 0x42b9e7
cmp eax, 2
jg 0x42b9e7
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.0040953d
add esp, 0xc
and dword [edi + 0x434], 0
jmp 0x42ba9a
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 0x42ba9a
mov esi, 0x100
push esi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0043dc10
push dword [ebp - 0x32c]
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x220]
push eax
call fcn.0042eb84
lea eax, [ebp - 0x220]
push eax
call fcn.004476a0
add esp, 0x20
sub esi, eax
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004476a0
pop ecx
lea ecx, [ebp - 0x220]
add eax, ecx
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x58c754], 0
jne 0x42ba9a
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.0040953d
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x42bacd
push edi
call fcn.0042c67a
pop ecx
mov eax, ebx
jmp 0x42bb4c
mov eax, dword [ebp - 0x330]
push eax
call fcn.0044731f
mov eax, dword [ebp - 0x334]
push eax
call fcn.0044731f
jmp 0x42b460
cmp dword [0x58c754], 0
jne 0x42bb18
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.0040953d
add esp, 0xc
push esi
call fcn.0040e507
jmp 0x42bae4
cmp dword [0x58c754], 0
jne 0x42bb43
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.0040953d
add esp, 0xc
push esi
call fcn.0040e507
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