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

Disassembly:
mov eax, 0x3080
call fcn.004c35f0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3094]
test edi, edi
jne 0x465080
push 0xd55a
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter_____void__0_
call fcn.004dbe9a
add esp, 0xc
mov eax, dword [edi + 0x5c]
cmp eax, dword [edi + 0x20]
je 0x46509f
push 0xd55b
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.format__pConverter__channelConverter.format
call fcn.004dbe9a
add esp, 0xc
mov eax, dword [edi + 0x60]
cmp eax, dword [edi + 0x24]
je 0x4650be
push 0xd55c
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.channels__pConverter__channelConverter.channelsIn
call fcn.004dbe9a
add esp, 0xc
mov ebx, dword [edi + 0x60]
mov ebp, dword [edi + 0x28]
cmp ebx, ebp
jb 0x4650e5
push 0xd55d
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.channels___pConverter__channelConverter.channelsOut
call fcn.004dbe9a
mov ebx, dword [edi + 0x60]
add esp, 0xc
mov ebp, dword [edi + 0x28]
mov eax, dword [esp + 0x309c]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
test eax, eax
je 0x465108
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
jmp 0x465118
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x30a4]
movlpd qword [esp + 0x20], xmm0
test ecx, ecx
je 0x465138
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
jmp 0x465148
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov esi, dword [edi + 0x5c]
xor edx, edx
mov dword [esp + 0x34], 0
mov eax, 0x1000
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], 4
mov ecx, dword [esp + esi*4 + 0x34]
imul ecx, ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 3
div ecx
mov dword [esp + 0x44], 4
xor edx, edx
mov dword [esp + 0x48], 4
mov ecx, dword [esp + esi*4 + 0x34]
imul ecx, ebx
mov dword [esp + 0x78], eax
mov eax, 0x1000
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 2
div ecx
mov ecx, dword [edi + 0x20]
xor edx, edx
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], 4
mov ecx, dword [esp + ecx*4 + 0x34]
imul ecx, ebp
mov dword [esp + 0x7c], eax
mov eax, 0x1000
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x70], xmm0
div ecx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x80], eax
jb 0x465651
ja 0x465241
cmp dword [esp + 0x1c], 0
jbe 0x465651
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], esi
cmp dword [esp + 0x3098], 0
mov ebx, dword [esp + 0x30a0]
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
je 0x4652cd
mov eax, dword [edi]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], 4
mov eax, dword [esp + eax*4 + 0x34]
imul eax, dword [edi + 8]
imul eax, ebp
add eax, dword [esp + 0x3098]
mov dword [esp + 0x60], eax
test ebx, ebx
je 0x465315
mov eax, dword [edi + 4]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], 4
mov eax, dword [esp + eax*4 + 0x34]
imul eax, dword [edi + 0xc]
imul eax, esi
add eax, ebx
mov dword [esp + 0x70], eax
mov ebx, dword [esp + 0x68]
mov al, byte [edi + 0xe0]
sub ebx, ebp
mov ebp, dword [esp + 0x64]
sbb ebp, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x13], al
test al, al
je 0x465351
test ebp, ebp
jb 0x465351
mov eax, dword [esp + 0x78]
ja 0x465345
cmp ebx, eax
jbe 0x465351
mov ebx, eax
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
sub eax, esi
mov dword [esp + 0x54], eax
sbb edx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov ecx, eax
mov esi, edx
test edx, edx
jb 0x46538f
ja 0x465379
cmp eax, dword [esp + 0x7c]
jbe 0x46538f
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x54], eax
xor esi, esi
mov dword [esp + 0x14], eax
cmp byte [edi + 0xe1], 0
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
je 0x4653d2
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
test esi, esi
jb 0x4653d2
ja 0x4653b7
cmp ecx, dword [esp + 0x80]
jbe 0x4653d2
mov ecx, dword [esp + 0x80]
xor edx, edx
mov eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x54], eax
xor esi, esi
mov dword [esp + 0x14], eax
jmp 0x4653da
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
lea eax, [edi + 0x50]
xorps xmm0, xmm0
movlpd qword [esp + 0x88], xmm0
test eax, eax
je 0x46544c
mov eax, dword [eax + 4]
test eax, eax
je 0x465444
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x465444
lea edx, [esp + 0x88]
push edx
push esi
push ecx
push dword [edi + 0x50]
push dword [edi + 0x58]
call eax
mov cl, byte [edi + 0xe0]
add esp, 0x14
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x13], cl
test eax, eax
je 0x465434
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
jmp 0x46544c
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
jmp 0x46546c
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.004c34c0
mov cl, byte [esp + 0x13]
cmp ebp, edx
jb 0x465482
ja 0x465476
cmp ebx, eax
jbe 0x465482
mov ebx, eax
mov ebp, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
test cl, cl
je 0x4654c9
cmp dword [esp + 0x3098], 0
je 0x4654c5
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 + 0xa0]
push dword [esp + 0x70]
push dword [edi + 0x5c]
push eax
call fcn.0047d460
add esp, 0x1c
lea ecx, [esp + 0x90]
jmp 0x4654cd
xor ecx, ecx
jmp 0x4654cd
mov ecx, dword [esp + 0x60]
lea ebx, [edi + 0x50]
test ebx, ebx
je 0x465641
mov eax, dword [ebx + 4]
test eax, eax
je 0x465631
mov eax, dword [eax + 0xc]
test eax, eax
je 0x465631
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1094]
push edx
lea edx, [esp + 0x30]
push edx
push ecx
push dword [ebx]
push dword [ebx + 8]
call eax
add esp, 0x18
test eax, eax
jne 0x465683
cmp dword [esp + 0x30a0], eax
je 0x465584
push dword [esp + 0x18]
cmp byte [edi + 0xe1], al
lea ebx, [esp + 0x2094]
push dword [esp + 0x18]
mov ebp, dword [esp + 0x78]
lea eax, [esp + 0x1098]
push eax
cmove ebx, ebp
lea eax, [edi + 0x20]
push ebx
push eax
call fcn.00458b60
add esp, 0x14
test eax, eax
jne 0x465683
cmp byte [edi + 0xe1], al
je 0x465584
mov eax, dword [esp + 0x18]
mul dword [edi + 0x28]
push dword [edi + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x18]
mul dword [edi + 0x28]
add ecx, edx
push ecx
push eax
push dword [edi + 0x20]
push ebx
push dword [edi + 4]
push ebp
call fcn.0047d460
add esp, 0x1c
mov ebp, dword [esp + 0x84]
add ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x6c]
adc ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
adc ecx, dword [esp + 0x18]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x58], ecx
cmp ebx, dword [esp + 0x64]
jb 0x4655e3
ja 0x4655c8
cmp ebp, dword [esp + 0x68]
jbe 0x4655e3
push 0xd5d6
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.framesProcessedIn___frameCountIn
call fcn.004dbe9a
mov ecx, dword [esp + 0x64]
add esp, 0xc
cmp ecx, dword [esp + 0x30]
jb 0x46560e
ja 0x4655f3
mov edx, dword [esp + 0x1c]
cmp esi, edx
jbe 0x465612
push 0xd5d7
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.framesProcessedOut___frameCountOut
call fcn.004dbe9a
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x18]
je 0x465661
cmp ecx, dword [esp + 0x30]
ja 0x465661
jb 0x465628
cmp esi, edx
jae 0x465661
mov edx, dword [esp + 0x6c]
jmp 0x465264
pop edi
pop esi
pop ebp
mov eax, 0xffffffe3
pop ebx
add esp, 0x3080
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x3080
ret
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x309c]
test eax, eax
je 0x465671
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x30a4]
test eax, eax
je 0x465681
mov dword [eax], esi
mov dword [eax + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3080
ret