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

Disassembly:
sub esp, 0x78
lea eax, [esp + 0x20]
push ebx
push 0x58
push 0
push eax
call fcn.004587c0
push 0xc
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004587c0
mov ebx, dword [esp + 0x98]
add esp, 0x18
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 4]
je 0x429808
push eax
push ebx
call fcn.004296a0
add esp, 8
test eax, eax
jns 0x429808
or eax, 0xffffffff
pop ebx
add esp, 0x78
ret
push esi
mov esi, dword [ebx + 0x50]
mov eax, esi
push edi
mov edi, dword [ebx + 0x54]
or eax, edi
jne 0x429839
mov eax, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, dword [esp + 0x84]
mov dword [eax], 0
xor eax, eax
add esp, 0x78
ret
movzx ecx, word [ebx + 0x1c]
movzx eax, word [ebx + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
lea eax, [ecx*8]
mov dword [esp + 0x44], esi
sub eax, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], eax
add ecx, ecx
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
test esi, esi
je 0x42989f
or eax, 0xffffffff
xor edx, edx
div esi
cmp eax, ecx
jbe 0x4298e1
mov edx, esi
imul edx, ecx
mov dword [esp + 0xc], edx
test edi, edi
jg 0x429bc3
jl 0x4298bb
cmp esi, 0xffffffff
ja 0x429bc3
mov eax, edx
mov dword [esp + 0x7c], 0
push edx
shr eax, 1
push 1
mov dword [esp + 0x80], eax
call fcn.00458110
add esp, 8
mov dword [esp + 0x74], eax
test eax, eax
jne 0x4298f2
push 0
call fcn.0041ac90
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x78
ret
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x20]
mov dword [esp + 0x58], eax
push ebp
test edi, edi
jl 0x429b2e
mov ebp, dword [esp + 0x50]
jg 0x429915
test ebp, ebp
je 0x429b2e
mov ecx, dword [esp + 0x68]
nop dword [eax]
mov edx, dword [esp + 0x64]
sub edx, ecx
cmp edx, dword [esp + 0x38]
jb 0x429b2e
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x34]
add esi, ecx
mov ebx, dword [esp + 0x30]
cmp edx, eax
mov dword [esp + 0x6c], esi
cmovb eax, edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov eax, edi
mul ebx
mov ecx, eax
mov eax, ebp
mul ebx
add ecx, edx
xor edx, edx
cmp edx, ecx
jb 0x429ba5
ja 0x429984
cmp dword [esp + 0x1c], eax
jb 0x429ba5
mov eax, dword [esp + 0x58]
xor edx, edx
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x429ad0
mov edi, dword [esp + 0x5c]
mov ebp, eax
add edi, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
nop word [eax + eax]
mov al, byte [edx + esi]
movzx ecx, al
cmp cx, word [ebp]
ja 0x429aa7
mov esi, dword [esp + 0x14]
movzx ecx, al
mov eax, dword [ebp + 4]
movzx eax, word [eax + ecx*4]
mov word [edi - 2], ax
mov eax, dword [ebp + 4]
movzx eax, word [eax + ecx*4 + 2]
mov word [edi], ax
mov eax, dword [esp + 0x6c]
movzx ecx, byte [esi + eax + 1]
movzx eax, byte [esi + eax]
shl cx, 8
or cx, ax
mov word [edi - 4], cx
lea edi, [edx + edx]
mov eax, dword [esp + 0x6c]
lea ecx, [edi + ebx*2]
add ecx, ebx
movzx esi, byte [ecx + eax + 1]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x80]
shl esi, 8
or esi, eax
cmp esi, 0x8000
movzx eax, si
movzx edx, si
cmovb edx, eax
mov eax, dword [esp + 0x78]
add ecx, ebx
mov word [eax + ecx*2], dx
lea ecx, [edi + ebx*4]
mov eax, dword [esp + 0x6c]
add ecx, ebx
mov edi, dword [esp + 0x1c]
movzx esi, byte [ecx + eax + 1]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x80]
shl esi, 8
or esi, eax
cmp esi, 0x8000
movzx eax, si
movzx edx, si
cmovb edx, eax
mov eax, dword [esp + 0x78]
add dword [esp + 0x14], 2
add edi, 6
mov dword [esp + 0x1c], edi
mov word [eax + ecx*2], dx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
inc edx
inc eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x80], eax
cmp edx, ebx
jae 0x429a99
mov esi, dword [esp + 0x6c]
jmp 0x4299b0
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
jmp 0x429ad7
push str.Invalid_MS_ADPCM_coefficient_index_in_block_header
call fcn.0041ad60
add esp, 4
cmp eax, 0xffffffff
jne 0x429af6
push dword [esp + 0x78]
call fcn.00458150
add esp, 4
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x38]
add eax, ebx
add dword [esp + 0x74], ecx
add ebp, 0xfffffffe
mov dword [esp + 0x80], eax
adc edi, 0xffffffff
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edi
lea eax, [esp + 0x30]
push eax
call fcn.00429be0
add esp, 4
cmp eax, 0xffffffff
je 0x429b52
mov ecx, dword [esp + 0x68]
add ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x68], ecx
test edi, edi
jl 0x429b2e
mov ebp, dword [esp + 0x50]
jg 0x429920
test ebp, ebp
jne 0x429920
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x78]
pop ebp
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0x8c]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x60]
cmp eax, 1
je 0x429b87
cmp eax, 2
je 0x429b87
mov esi, dword [esp + 0x80]
cmp eax, 3
je 0x429b83
mov ecx, dword [esp + 0x3c]
mov eax, esi
imul ecx, dword [esp + 0x30]
xor edx, edx
div ecx
sub esi, edx
add esi, esi
jmp 0x429b32
push dword [esp + 0x78]
call fcn.00458150
push str.Truncated_data_chunk
call fcn.0041ad60
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret
push dword [esp + 0x78]
call fcn.00458150
push str.Unexpected_overflow_in_MS_ADPCM_decoder
call fcn.0041ad60
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret
push str.WAVE_file_too_big
call fcn.0041ad60
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x78
ret