Function at 0x42b781
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x20]
push 0x18
push 0
mov ebx, 0x2710
mov dword [esp + 0x78], 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0
call fcn.00459450
push 0x18
lea eax, [esp + 0x60]
push 0
push eax
call fcn.00459450
push 0x18
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00459450
push str.SDL_WAVE_CHUNK_LIMIT
call fcn.00458e90
add esp, 0x28
test eax, eax
je 0x42b66d
lea ecx, [esp + 0x14]
push ecx
push 0x520dd4
push eax
call fcn.0041cba0
add esp, 0xc
cmp eax, 1
cmove ebx, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x6c]
push ebp
call fcn.0041f1d0
add esp, 4
test edx, edx
jg 0x42b698
jl 0x42b684
test eax, eax
jae 0x42b698
push str.Could_not_seek_in_file
call fcn.0041b670
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push ebp
mov dword [esp + 0x34], edx
call fcn.0042bd60
add esp, 8
test eax, eax
jns 0x42b6c6
push str.Could_not_read_RIFF_header
call fcn.0041b670
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x20]
cmp eax, 0x46464952
jne 0x42b720
push 1
push 4
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.0041f190
add esp, 0x10
cmp eax, 1
je 0x42b6fc
push str.Could_not_read_RIFF_form_type
call fcn.0041b670
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esp + 0x10], 0x45564157
je 0x42b71a
push str.RIFF_form_type_is_not_WAVE__not_a_Waveform_file_
call fcn.0041b670
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x24]
jmp 0x42b73a
cmp eax, 0x45564157
jne 0x42bcb6
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ebx, eax
push edi
mov edi, edx
mov dword [esp + 0x10], eax
add edi, 4
mov dword [esi + 8], edi
adc ebx, 0
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x5c]
dec eax
cmp eax, 3
ja case.0x42b760.2
jmp dword [eax*4 + 0x42bccc]
add edx, 0xffffffff
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
adc edx, 0
jmp 0x42b7ae
or ecx, 0xffffffff
mov edx, 0x7fffffff
jmp 0x42b7aa
test ecx, ecx
jne case.0x42b760.1
mov eax, dword [esp + 0x10]
add edx, 0xffffffff
mov dword [esp + 0x14], edx
adc eax, ecx
mov dword [esp + 0x10], eax
jmp 0x42b7b2
xor eax, eax
mov dword [esp + 0x1c], 1
add ecx, edx
mov edx, dword [esp + 0x10]
adc edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
xor ecx, ecx
and edx, 1
add edx, dword [esi + 4]
adc ecx, ecx
add edx, edi
mov edi, dword [esp + 0x10]
adc ecx, ebx
cmp edi, ecx
jb 0x42b929
mov ebx, dword [esp + 0x14]
ja 0x42b7e0
cmp ebx, edx
jbe 0x42b929
nop dword [eax]
mov ecx, dword [esp + 0x74]
mov eax, ecx
inc ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jae 0x42b9a5
push esi
push ebp
call fcn.0042bd60
add esp, 8
cmp eax, 0xffffffff
je 0x42b98a
cmp eax, 0xfffffffe
je 0x42b975
mov eax, dword [esi]
cmp eax, 0x20746d66
jne 0x42b849
cmp dword [esp + 0x54], eax
je 0x42b8c3
cmp dword [esp + 0x3c], 0x61746164
je 0x42b960
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x54], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x64], xmm0
jmp 0x42b8c3
cmp eax, 0x61746164
jne 0x42b86b
cmp dword [esp + 0x3c], eax
je 0x42b8c3
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x3c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x4c], xmm0
jmp 0x42b8c3
cmp eax, 0x74636166
jne 0x42b8c3
cmp dword [esi + 0x48], 0
jne 0x42b8c3
cmp dword [esi + 4], 4
jb 0x42b8bc
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push ebp
call fcn.0041f1a0
add esp, 0x10
cmp eax, dword [esi + 8]
jne 0x42b8bc
cmp edx, dword [esi + 0xc]
jne 0x42b8bc
push 1
push 4
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.0041f190
add esp, 0x10
cmp eax, 1
jne 0x42b8bc
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4c], eax
jmp 0x42b8c3
mov dword [esi + 0x48], 0xffffffff
cmp dword [esi + 0x60], 1
jne 0x42b8e8
mov ecx, dword [esi + 4]
xor eax, eax
add ecx, dword [esi + 8]
adc eax, dword [esi + 0xc]
cmp edi, eax
jb 0x42ba37
ja 0x42b90e
cmp ebx, ecx
jb 0x42ba37
jmp 0x42b90e
cmp dword [esp + 0x54], 0x20746d66
jne 0x42b90e
cmp dword [esp + 0x3c], 0x61746164
jne 0x42b90e
cmp dword [esi + 0x48], 1
je 0x42b929
mov eax, dword [esi + 0x64]
cmp eax, 4
je 0x42b929
test eax, eax
je 0x42b929
mov edx, dword [esi + 4]
xor ecx, ecx
and edx, 1
add edx, dword [esi + 4]
adc ecx, ecx
add edx, dword [esi + 8]
adc ecx, dword [esi + 0xc]
cmp edi, ecx
jae 0x42b7d3
mov eax, dword [esi + 4]
mov ecx, 0
mov ebx, eax
add ebx, dword [esi + 8]
mov dword [esp + 0x20], ebx
adc ecx, dword [esi + 0xc]
cmp dword [esp + 0x54], 0x20746d66
mov dword [esp + 0x18], ecx
je 0x42b9bb
push str.Missing_fmt_chunk_in_WAVE_file
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push str.fmt_chunk_after_data_chunk_in_WAVE_file
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push str.Could_not_seek_to_WAVE_chunk_header
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esi + 0x60], 1
jne 0x42b929
push str.Unexpected_end_of_WAVE_file
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push ecx
push str.Chunk_count_in_WAVE_file_exceeds_limit_of__u
call fcn.0041b670
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esp + 0x3c], 0x61746164
je 0x42b9da
push str.Missing_data_chunk_in_WAVE_file
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esi + 0x60], 1
jne 0x42ba50
cmp dword [esi], 0x61746164
je 0x42ba50
test eax, eax
je 0x42ba50
add ebx, 0xffffffff
mov edi, ecx
adc edi, 0xffffffff
cmp edi, 0x7fffffff
ja 0x42ba91
jb 0x42ba0b
cmp ebx, 0xffffffff
ja 0x42ba91
push 0
push edi
push ebx
push ebp
call fcn.0041f1a0
add esp, 0x10
cmp eax, ebx
jne 0x42ba91
cmp edx, edi
jne 0x42ba91
push 1
push 1
lea eax, [esp + 0x7c]
push eax
push ebp
call fcn.0041f190
add esp, 0x10
cmp eax, 1
je 0x42ba4c
push str.RIFF_size_truncates_chunk
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ebx, dword [esp + 0x20]
movups xmm0, xmmword [esp + 0x54]
push 0x416
push esi
movups xmmword [esi], xmm0
push ebp
movq xmm0, qword [esp + 0x70]
movq qword [esi + 0x10], xmm0
call fcn.0042bfe0
add esp, 0xc
test eax, eax
js 0x42baac
cmp dword [esi + 4], 0xe
jae 0x42baa6
push str.Invalid_WAVE_fmt_chunk_length__too_small_
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push str.Could_not_seek_to_WAVE_chunk_data
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esi + 0x14], 0xe
jae 0x42bac1
push str.Could_not_read_data_of_WAVE_fmt_chunk
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push esi
call fcn.0042be40
add esp, 4
test eax, eax
js 0x42bcab
push dword [esp + 0x40]
push esi
call fcn.0042b0b0
add esp, 8
test eax, eax
js 0x42bcab
push esi
call fcn.0042b5c0
movups xmm0, xmmword [esp + 0x40]
add esp, 4
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x4c]
movq qword [esi + 0x10], xmm0
mov eax, dword [esi + 4]
test eax, eax
je 0x42bb38
push eax
push esi
push ebp
call fcn.0042bfe0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42bcab
cmp eax, 0xfffffffe
jne 0x42bb38
push str.Could_not_seek_data_of_WAVE_data_chunk
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x14]
je 0x42bb62
mov eax, dword [esi + 0x60]
cmp eax, 1
je 0x42bb4d
cmp eax, 2
jne 0x42bb62
push str.Could_not_read_data_of_WAVE_data_chunk
call fcn.0041b670
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
movzx eax, word [esi + 0x1a]
dec eax
cmp eax, 0x10
ja case.0x42bb73.4
movzx eax, byte [eax + 0x42bcf0]
jmp dword [eax*4 + 0x42bcdc]
push dword [esp + 0x80]
push dword [esp + 0x80]
push esi
call fcn.0042ac00
jmp 0x42bbd0
push dword [esp + 0x80]
push dword [esp + 0x80]
push esi
call fcn.00429fe0
jmp 0x42bbd0
push dword [esp + 0x80]
push dword [esp + 0x80]
push esi
call fcn.0042a380
jmp 0x42bbd0
push dword [esp + 0x80]
push dword [esp + 0x80]
push esi
call fcn.00429830
add esp, 0xc
test eax, eax
js 0x42bcab
mov edi, dword [esp + 0x78]
push 0x18
push 0
push edi
call fcn.00459450
mov eax, dword [esi + 0x20]
add esp, 0xc
mov dword [edi], eax
mov al, byte [esi + 0x1c]
mov byte [edi + 6], al
mov eax, 0x1000
mov word [edi + 8], ax
movzx eax, word [esi + 0x1a]
dec eax
cmp eax, 0x10
ja case.0x42bc11.4
movzx eax, byte [eax + 0x42bd14]
jmp dword [eax*4 + 0x42bd04]
mov eax, 0x8120
jmp 0x42bc62
movzx ecx, word [esi + 0x2a]
lea eax, [ecx - 8]
cmp eax, 0x18
ja case.0x42bc32.9
movzx eax, byte [eax + 0x42bd38]
jmp dword [eax*4 + 0x42bd28]
mov eax, 8
jmp 0x42bc62
mov eax, 0x8020
jmp 0x42bc62
push ecx
push str.Unexpected__u_bit_PCM_data_format
call fcn.0041b670
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, 0x8010
mov word [edi + 4], ax
movzx eax, word [edi + 4]
push eax
call fcn.00428c10
add esp, 4
mov byte [edi + 7], al
cmp dword [esp + 0x1c], 0
je 0x42bc95
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esi + 8], eax
xor eax, eax
pop edi
mov dword [esi + 0xc], edx
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x18]
mov eax, ebx
mov dword [esi + 8], eax
xor eax, eax
pop edi
mov dword [esi + 0xc], edx
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret
push str.Could_not_find_RIFF_or_WAVE_identifiers__not_a_Waveform_file_
call fcn.0041b670
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret