Function at 0x436200
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 0x436226
push 0xc8ed
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pResampler_____void__0_
call fcn.004742a9
add esp, 0xc
mov ebx, dword [esp + 0x80]
test ebx, ebx
jne 0x436248
push 0xc8ee
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pFrameCountIn_____void__0_
call fcn.004742a9
add esp, 0xc
mov edi, dword [esp + 0x88]
test edi, edi
jne 0x43626a
push 0xc8ef
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pFrameCountOut_____void__0_
call fcn.004742a9
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 0x43662c
ja 0x4362a5
test eax, eax
je 0x43662c
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 0x436372
mov ebx, dword [esp + 0x7c]
cmp edx, edi
jb 0x43635a
ja 0x4362e6
cmp ecx, ebp
jbe 0x43635a
mov eax, dword [esi + 4]
xor edx, edx
test ebx, ebx
je 0x436319
test eax, eax
je 0x436314
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 0x4362f3
lea ebx, [ebx + eax*2]
jmp 0x43633d
test eax, eax
je 0x43633d
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 0x436320
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 0x4362d4
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
test eax, eax
jne 0x436606
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x4365b0
test eax, eax
je 0x43639c
push 0xc914
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pResampler__inTimeInt__0
call fcn.004742a9
add esp, 0xc
push ebx
push esi
call fcn.00435a70
mov eax, dword [esi + 8]
add esp, 8
cmp eax, dword [esi + 0xc]
je 0x43659b
cmp dword [esi + 0x38], 2
je 0x4363cf
push 0xb4d1
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pLPF__format__ma_format_s16
call fcn.004742a9
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.004174c0
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x44], ecx
jbe 0x43649d
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 0x436481
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 0x436453
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 0x436430
mov ebx, dword [esp + 0x84]
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esi + 0x48], eax
jbe 0x43659b
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 0x43657f
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 0x436500
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 0x4364b2
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 0x4365e4
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 0x4362c5
ja 0x436606
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x10], eax
jb 0x4362c5
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 0x43660a