Function at 0x47e9d0
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 0x47ea12
push 0x12330
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pHeapLayout
call fcn.004d84d4
push 0x2fbb
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.sz__0
call fcn.004d84d4
add esp, 0x18
jmp 0x47ea1f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov edi, dword [esp + 0x104]
test edi, edi
je 0x47ec09
cmp dword [edi], 0
je 0x47ec09
mov dword [esi], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x47ea62
mov eax, dword [edi]
test eax, eax
je 0x47ea62
add eax, 0x100
je 0x47ea62
cmp dword [eax + 0x34], 0
ja 0x47ea5b
xor eax, eax
jmp 0x47ea62
mov eax, dword [eax + 0x3c]
movzx eax, byte [eax + 5]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x47ea8b
mov eax, dword [edi]
test eax, eax
je 0x47ea8b
add eax, 0x100
je 0x47ea8b
cmp dword [eax + 0x34], 0
ja 0x47ea84
xor eax, eax
jmp 0x47ea8b
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.0047e960
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.00487980
add esp, 0x14
test eax, eax
jne 0x47ec0e
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.00483b00
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.00483b60
add esp, 0x1c
test eax, eax
jne 0x47ec0e
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.0047fb20
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 0x47ec09
mov edx, dword [esp + 0x74]
test edx, edx
je 0x47ec09
xor ecx, ecx
test ebx, ebx
je 0x47ebc4
lea ecx, [ebp + 7]
and ecx, 0xfffffff8
lea eax, [edx*4 + 7]
and eax, 0xfffffff8
add eax, ecx
test edx, edx
je 0x47ec09
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 0x47ebfc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47ec09
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