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

Disassembly:
mov eax, 0x3078
call fcn.0055af10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x308c]
test edi, edi
jne 0x518b90
push 0xd5f6
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter_____void__0_
call fcn.00581dd0
add esp, 0xc
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x20]
cmp eax, dword [esi]
je 0x518bb1
push 0xd5f7
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.format__pConverter__channelConverter.format
call fcn.00581dd0
add esp, 0xc
mov ebx, dword [edi + 0x28]
cmp dword [edi + 0x60], ebx
je 0x518bd3
push 0xd5f8
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.channels__pConverter__channelConverter.channelsOut
call fcn.00581dd0
mov ebx, dword [edi + 0x28]
add esp, 0xc
mov ebp, dword [edi + 0x60]
mov eax, dword [edi + 0x24]
cmp ebp, eax
jbe 0x518bfd
push 0xd5f9
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pConverter__resampler.channels___pConverter__channelConverter.channelsIn
call fcn.00581dd0
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 0x518c23
mov esi, dword [ecx]
mov dword [esp + 0x68], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x64], esi
lea esi, [edi + 0x20]
jmp 0x518c33
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 0x518c53
mov ecx, dword [edx]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
jmp 0x518c63
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 0x519191
mov edx, dword [esp + 0x24]
ja 0x518d5a
test edx, edx
je 0x519191
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 0x518de2
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 0x518e35
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 0x518e6f
ja 0x518e59
cmp eax, dword [esp + 0x50]
jbe 0x518e6f
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 0x518e96
test ecx, ecx
jb 0x518e96
ja 0x518e84
cmp esi, dword [esp + 0x74]
jbe 0x518e96
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 0x518ee1
test ebp, ebp
jb 0x518ee1
ja 0x518ecf
cmp ebx, dword [esp + 0x78]
jbe 0x518ee1
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 0x518efb
mov ecx, dword [esp + 0x50]
ja 0x518eef
cmp esi, ecx
jbe 0x518efb
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 0x518f6c
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x518f64
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x518f64
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 0x518f54
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
jmp 0x518f6c
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
jmp 0x518f8c
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.0055ade0
mov cl, byte [esp + 0x13]
cmp ebp, edx
jb 0x518fa2
ja 0x518f96
cmp ebx, eax
jbe 0x518fa2
mov ebx, eax
mov ebp, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
test cl, cl
je 0x518fee
cmp dword [esp + 0x58], 0
je 0x518fea
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.00531d50
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0xa4]
mov ebx, dword [esp + 0x30]
add esp, 0x1c
jmp 0x518ff2
xor eax, eax
jmp 0x518ff2
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.0050d450
add esp, 0x14
test eax, eax
jne 0x519166
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 0x519181
mov eax, dword [esi + 4]
test eax, eax
je 0x519171
mov eax, dword [eax + 0xc]
test eax, eax
je 0x519171
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 0x519166
cmp byte [edi + 0xe1], al
je 0x51909e
test ebp, ebp
je 0x51909e
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.00531d50
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 0x5190f3
ja 0x5190dc
cmp esi, dword [esp + 0x68]
jbe 0x5190f3
push 0xd67a
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.framesProcessedIn___frameCountIn
call fcn.00581dd0
add esp, 0xc
mov ecx, dword [esp + 0x34]
cmp ebp, ecx
jb 0x519120
ja 0x519105
mov edx, dword [esp + 0x24]
cmp ebx, edx
jbe 0x519124
push 0xd67b
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.framesProcessedOut___frameCountOut
call fcn.00581dd0
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
je 0x519140
cmp ebp, ecx
ja 0x519140
jb 0x518d80
cmp ebx, edx
jb 0x518d80
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3094]
test ecx, ecx
je 0x519154
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x309c]
test eax, eax
je 0x519164
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 0x519144