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

Disassembly:
sub esp, 0xf0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
test esi, esi
jne 0x4e0272
push 0x12330
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pHeapLayout
call fcn.005135e9
push 0x2fbb
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.sz__0
call fcn.005135e9
add esp, 0x18
jmp 0x4e027f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov edi, dword [esp + 0x104]
test edi, edi
je 0x4e0469
cmp dword [edi], 0
je 0x4e0469
mov dword [esi], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x4e02c2
mov eax, dword [edi]
test eax, eax
je 0x4e02c2
add eax, 0x100
je 0x4e02c2
cmp dword [eax + 0x34], 0
ja 0x4e02bb
xor eax, eax
jmp 0x4e02c2
mov eax, dword [eax + 0x3c]
movzx eax, byte [eax + 5]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4e02eb
mov eax, dword [edi]
test eax, eax
je 0x4e02eb
add eax, 0x100
je 0x4e02eb
cmp dword [eax + 0x34], 0
ja 0x4e02e4
xor eax, eax
jmp 0x4e02eb
mov eax, dword [eax + 0x3c]
movzx eax, byte [eax + 5]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004e0130
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [eax + 0x10]
lea eax, [esp + 0x18]
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
push dword [edi]
call fcn.004df5b0
add esp, 0x14
test eax, eax
jne 0x4e046e
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
add eax, 7
push 1
and eax, 0xfffffff8
mov dword [esi + 4], ecx
push 1
push dword [esp + 0x18]
add eax, ecx
mov dword [esi], eax
lea eax, [esp + 0x3c]
push 5
push eax
call fcn.004c0180
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x64], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x68]
movups xmmword [esp + 0x78], xmm0
push eax
mov dword [esp + 0x7c], 0
call fcn.004d8b10
add esp, 0x1c
test eax, eax
jne 0x4e046e
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
add eax, 7
and eax, 0xfffffff8
mov dword [esi + 8], ecx
add eax, ecx
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.004e01a0
add esp, 8
lea ebx, [esp + 0x14]
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax]
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [eax + 0x20]
movd ebp, xmm1
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [eax + 0x30]
cmp ebp, 2
movups xmmword [esp + 0x70], xmm1
movups xmmword [esp + 0xa0], xmm0
movq xmm0, qword [eax + 0x40]
psrldq xmm1, 8
movd eax, xmm1
movq qword [esp + 0xb0], xmm0
cmovne ebx, eax
test ebp, ebp
je 0x4e0469
mov edx, dword [esp + 0x74]
test edx, edx
je 0x4e0469
xor ecx, ecx
test ebx, ebx
je 0x4e0424
lea ecx, [ebp + 7]
and ecx, 0xfffffff8
lea eax, [edx*4 + 7]
and eax, 0xfffffff8
add eax, ecx
test edx, edx
je 0x4e0469
mov ecx, dword [esi]
lea eax, [eax + edx*8]
add eax, 7
mov dword [esi + 0xc], ecx
and eax, 0xfffffff8
add eax, ecx
mov dword [esi], eax
cmp dword [edi + 0x14], 0
jbe 0x4e045c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4e0469
mov dword [esi + 0x10], eax
lea eax, [eax + ecx*8]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf0
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret