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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
test esi, esi
jne 0x4db476
push 0xc8ed
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pResampler_____void__0_
call fcn.00515679
add esp, 0xc
mov ebx, dword [esp + 0x80]
test ebx, ebx
jne 0x4db498
push 0xc8ee
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pFrameCountIn_____void__0_
call fcn.00515679
add esp, 0xc
mov edi, dword [esp + 0x88]
test edi, edi
jne 0x4db4ba
push 0xc8ef
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pFrameCountOut_____void__0_
call fcn.00515679
add esp, 0xc
mov ecx, dword [ebx]
xorps xmm0, xmm0
mov edx, dword [ebx + 4]
mov ebx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x44], xmm0
test ebx, ebx
jb 0x4db87c
ja 0x4db4f5
test eax, eax
je 0x4db87c
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4db5c2
mov ebx, dword [esp + 0x7c]
cmp edx, edi
jb 0x4db5aa
ja 0x4db536
cmp ecx, ebp
jbe 0x4db5aa
mov eax, dword [esi + 4]
xor edx, edx
test ebx, ebx
je 0x4db569
test eax, eax
je 0x4db564
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
movzx eax, word [eax + edx*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x34]
movzx eax, word [ebx + edx*2]
mov word [ecx + edx*2], ax
inc edx
mov eax, dword [esi + 4]
cmp edx, eax
jb 0x4db543
lea ebx, [ebx + eax*2]
jmp 0x4db58d
test eax, eax
je 0x4db58d
nop dword [eax]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov ax, word [eax + edx*2]
mov word [ecx + edx*2], ax
xor ecx, ecx
mov eax, dword [esi + 0x34]
mov word [eax + edx*2], cx
inc edx
cmp edx, dword [esi + 4]
jb 0x4db570
mov eax, dword [esi + 0x28]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
adc edi, 0
add eax, 0xffffffff
mov dword [esi + 0x28], eax
jne 0x4db524
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
test eax, eax
jne 0x4db856
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x4db800
test eax, eax
je 0x4db5ec
push 0xc914
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pResampler__inTimeInt__0
call fcn.00515679
add esp, 0xc
push ebx
push esi
call fcn.004dacc0
mov eax, dword [esi + 8]
add esp, 8
cmp eax, dword [esi + 0xc]
je 0x4db7eb
cmp dword [esi + 0x38], 2
je 0x4db61f
push 0xb4d1
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pLPF__format__ma_format_s16
call fcn.00515679
add esp, 0xc
mov eax, dword [esi + 0x38]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], 3
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], 4
mov eax, dword [esp + eax*4 + 0x5c]
imul eax, dword [esi + 0x3c]
push eax
push ebx
push ebx
call fcn.004adc20
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x44], ecx
jbe 0x4db6ed
xor eax, eax
mov dword [esp + 0x24], eax
nop word [eax + eax]
mov edi, dword [esi + 0x4c]
mov ebx, 0x4000
add edi, eax
xor edx, edx
mov eax, dword [edi + 8]
sub ebx, eax
mov ebp, dword [edi + 4]
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x4db6d1
mov esi, dword [esp + 0x84]
mov eax, dword [edi + 0xc]
movsx ecx, word [esi + edx*2]
imul ecx, ebx
mov eax, dword [eax + edx*4]
imul eax, dword [esp + 0x30]
add ecx, eax
sar ecx, 0xe
mov word [esi + edx*2], cx
mov eax, dword [edi + 0xc]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, ebp
jb 0x4db6a3
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 0x18
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp ecx, dword [esi + 0x44]
jb 0x4db680
mov ebx, dword [esp + 0x84]
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esi + 0x48], eax
jbe 0x4db7eb
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov ebp, dword [esi + 0x50]
add ebp, ecx
mov dword [esp + 0x30], 0
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x40], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x34], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], edi
test edx, edx
je 0x4db7cf
mov esi, dword [esp + 0x30]
nop dword [eax]
movsx ebx, word [ebx + esi*2]
mov eax, dword [ebp + 0x1c]
mov edx, ebx
imul edx, edi
add edx, dword [eax + esi*4]
mov eax, dword [ebp + 0x20]
sar edx, 0xe
mov ecx, edx
imul ecx, dword [esp + 0x34]
mov edi, dword [eax + esi*4]
mov eax, ebx
imul eax, dword [esp + 0x38]
imul ebx, dword [esp + 0x40]
sub edi, ecx
mov ecx, 0xffff8000
add edi, eax
mov eax, edx
imul eax, dword [esp + 0x3c]
sub ebx, eax
mov eax, 0x7fff
cmp edx, eax
cmovl eax, edx
cmp eax, 0xffff8000
cmovl eax, ecx
mov ecx, dword [esp + 0x84]
mov word [ecx + esi*2], ax
mov eax, dword [ebp + 0x1c]
mov dword [eax + esi*4], edi
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x4c]
mov dword [eax + esi*4], ebx
inc esi
mov ebx, ecx
cmp esi, dword [esp + 0x44]
jb 0x4db750
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 0x2c
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [esi + 0x48]
jb 0x4db702
mov ebx, dword [esp + 0x84]
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
lea ebx, [ebx + eax*2]
mov dword [esp + 0x84], ebx
add dword [esp + 0x10], 1
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
adc ebx, 0
add dword [esi + 0x28], eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x2c], eax
cmp eax, ecx
jb 0x4db834
sub eax, ecx
mov dword [esi + 0x2c], eax
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x54]
jb 0x4db515
ja 0x4db856
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x10], eax
jb 0x4db515
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x80]
mov dword [ecx], ebp
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], ebx
pop ebx
add esp, 0x64
ret
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
jmp 0x4db85a