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

Disassembly:
mov eax, 0x3078
call fcn.0050b0c0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x308c]
test edi, edi
jne 0x4df5c0
push 0xd5f6
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter_____void__0_
call fcn.00515569
add esp, 0xc
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x20]
cmp eax, dword [esi]
je 0x4df5e1
push 0xd5f7
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.format__pConverter__channelConverter.format
call fcn.00515569
add esp, 0xc
mov ebx, dword [edi + 0x28]
cmp dword [edi + 0x60], ebx
je 0x4df603
push 0xd5f8
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.channels__pConverter__channelConverter.channelsOut
call fcn.00515569
mov ebx, dword [edi + 0x28]
add esp, 0xc
mov ebp, dword [edi + 0x60]
mov eax, dword [edi + 0x24]
cmp ebp, eax
jbe 0x4df62d
push 0xd5f9
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.channels___pConverter__channelConverter.channelsIn
call fcn.00515569
mov eax, dword [edi + 0x24]
add esp, 0xc
mov ebx, dword [edi + 0x28]
mov ebp, dword [edi + 0x60]
mov ecx, dword [esp + 0x3094]
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
test ecx, ecx
je 0x4df653
mov esi, dword [ecx]
mov dword [esp + 0x68], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x64], esi
lea esi, [edi + 0x20]
jmp 0x4df663
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x309c]
movlpd qword [esp + 0x2c], xmm0
test edx, edx
je 0x4df683
mov ecx, dword [edx]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
jmp 0x4df693
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov esi, dword [esi]
xor edx, edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], 4
mov ecx, dword [esp + esi*4 + 0x38]
imul ecx, eax
mov eax, 0x1000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 3
div ecx
mov dword [esp + 0x48], 4
xor edx, edx
mov dword [esp + 0x4c], 4
mov ecx, dword [esp + esi*4 + 0x38]
imul ecx, ebx
mov dword [esp + 0x78], eax
mov eax, 0x1000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
div ecx
mov ecx, dword [edi + 0x5c]
xor edx, edx
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], 4
mov ecx, dword [esp + ecx*4 + 0x38]
imul ecx, ebp
mov dword [esp + 0x50], eax
mov eax, 0x1000
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x6c], xmm0
div ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x74], eax
test ecx, ecx
jb 0x4dfbc1
mov edx, dword [esp + 0x24]
ja 0x4df78a
test edx, edx
je 0x4dfbc1
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x6c], ebx
nop word [eax + eax]
cmp dword [esp + 0x3090], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x7c], 0
je 0x4df812
mov eax, dword [edi]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], 4
mov eax, dword [esp + eax*4 + 0x38]
imul eax, dword [edi + 8]
imul eax, esi
add eax, dword [esp + 0x3090]
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x3098]
test esi, esi
je 0x4df865
mov eax, dword [edi + 4]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], 4
mov ecx, dword [esp + eax*4 + 0x38]
imul ecx, dword [edi + 0xc]
imul ecx, ebx
add ecx, esi
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x34]
mov eax, edx
mov edx, ecx
sub eax, ebx
mov dword [esp + 0x54], eax
mov esi, eax
sbb edx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov ecx, edx
test edx, edx
jb 0x4df89f
ja 0x4df889
cmp eax, dword [esp + 0x50]
jbe 0x4df89f
mov eax, dword [esp + 0x50]
xor edx, edx
mov dword [esp + 0x54], eax
mov esi, eax
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x20], edx
cmp byte [edi + 0xe1], 0
je 0x4df8c6
test ecx, ecx
jb 0x4df8c6
ja 0x4df8b4
cmp esi, dword [esp + 0x74]
jbe 0x4df8c6
mov eax, dword [esp + 0x74]
xor edx, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x68]
sub ebx, dword [esp + 0x60]
mov cl, byte [edi + 0xe0]
mov esi, ebx
mov ebp, dword [esp + 0x64]
sbb ebp, dword [esp + 0x28]
mov byte [esp + 0x13], cl
mov ecx, ebp
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
je 0x4df911
test ebp, ebp
jb 0x4df911
ja 0x4df8ff
cmp ebx, dword [esp + 0x78]
jbe 0x4df911
mov ebx, dword [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov esi, ebx
mov dword [esp + 0x18], ebp
xor ecx, ecx
test ecx, ecx
jb 0x4df92b
mov ecx, dword [esp + 0x50]
ja 0x4df91f
cmp esi, ecx
jbe 0x4df92b
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
lea esi, [edi + 0x50]
xorps xmm0, xmm0
movlpd qword [esp + 0x80], xmm0
test esi, esi
je 0x4df99c
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4df994
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x4df994
lea ebx, [esp + 0x80]
push ebx
push edx
push eax
push dword [esi]
push dword [esi + 8]
call ecx
mov cl, byte [edi + 0xe0]
add esp, 0x14
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x13], cl
test eax, eax
je 0x4df984
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
jmp 0x4df99c
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
jmp 0x4df9bc
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov eax, edx
mul dword [edi + 0x64]
push 0
push dword [edi + 0x68]
mov esi, eax
mov eax, dword [esp + 0x5c]
mul dword [edi + 0x64]
add esi, edx
push esi
push eax
call fcn.0050c7a0
mov cl, byte [esp + 0x13]
cmp ebp, edx
jb 0x4df9d2
ja 0x4df9c6
cmp ebx, eax
jbe 0x4df9d2
mov ebx, eax
mov ebp, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
test cl, cl
je 0x4dfa1e
cmp dword [esp + 0x58], 0
je 0x4dfa1a
push dword [edi + 0x18]
mov eax, ebp
mul dword [edi + 8]
mov ecx, eax
mov eax, ebx
mul dword [edi + 8]
add ecx, edx
push ecx
push eax
push dword [edi]
lea eax, [esp + 0x98]
push dword [esp + 0x68]
push dword [edi + 0x20]
push eax
call fcn.004c4880
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0xa4]
mov ebx, dword [esp + 0x30]
add esp, 0x1c
jmp 0x4dfa22
xor eax, eax
jmp 0x4dfa22
mov eax, dword [esp + 0x58]
push ebp
push ebx
push eax
lea eax, [esp + 0x1094]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.004c2c70
add esp, 0x14
test eax, eax
jne 0x4dfb96
cmp byte [edi + 0xe1], al
lea ebx, [esp + 0x2088]
mov ebp, dword [esp + 0x7c]
lea esi, [edi + 0x50]
cmove ebx, ebp
test esi, esi
je 0x4dfbb1
mov eax, dword [esi + 4]
test eax, eax
je 0x4dfba1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4dfba1
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1094]
push ecx
push dword [esi]
push dword [esi + 8]
call eax
add esp, 0x18
test eax, eax
jne 0x4dfb96
cmp byte [edi + 0xe1], al
je 0x4dface
test ebp, ebp
je 0x4dface
mov eax, dword [esp + 0x20]
mul dword [edi + 0xc]
push dword [edi + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x20]
mul dword [edi + 0xc]
add ecx, edx
push ecx
push eax
push dword [edi + 0x5c]
push ebx
push dword [edi + 4]
push ebp
call fcn.004c4880
add esp, 0x1c
mov esi, dword [esp + 0x60]
add esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
adc eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
adc ebp, dword [esp + 0x20]
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x2c], ebp
cmp eax, dword [esp + 0x64]
jb 0x4dfb23
ja 0x4dfb0c
cmp esi, dword [esp + 0x68]
jbe 0x4dfb23
push 0xd67a
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.framesProcessedIn___frameCountIn
call fcn.00515569
add esp, 0xc
mov ecx, dword [esp + 0x34]
cmp ebp, ecx
jb 0x4dfb50
ja 0x4dfb35
mov edx, dword [esp + 0x24]
cmp ebx, edx
jbe 0x4dfb54
push 0xd67b
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.framesProcessedOut___frameCountOut
call fcn.00515569
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
je 0x4dfb70
cmp ebp, ecx
ja 0x4dfb70
jb 0x4df7b0
cmp ebx, edx
jb 0x4df7b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3094]
test ecx, ecx
je 0x4dfb84
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x309c]
test eax, eax
je 0x4dfb94
mov dword [eax], ebx
mov dword [eax + 4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3078
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe3
pop ebx
add esp, 0x3078
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x3078
ret
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
jmp 0x4dfb74