Function at 0x52cc00
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 0x52cc42
push 0x12330
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pHeapLayout
call fcn.00587dd0
push 0x2fbb
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.sz__0
call fcn.00587dd0
add esp, 0x18
jmp 0x52cc4f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov edi, dword [esp + 0x104]
test edi, edi
je 0x52ce39
cmp dword [edi], 0
je 0x52ce39
mov dword [esi], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x52cc92
mov eax, dword [edi]
test eax, eax
je 0x52cc92
add eax, 0x100
je 0x52cc92
cmp dword [eax + 0x34], 0
ja 0x52cc8b
xor eax, eax
jmp 0x52cc92
mov eax, dword [eax + 0x3c]
movzx eax, byte [eax + 5]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x52ccbb
mov eax, dword [edi]
test eax, eax
je 0x52ccbb
add eax, 0x100
je 0x52ccbb
cmp dword [eax + 0x34], 0
ja 0x52ccb4
xor eax, eax
jmp 0x52ccbb
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.0052cb90
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.00535bb0
add esp, 0x14
test eax, eax
jne 0x52ce3e
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.00531d30
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.00531d90
add esp, 0x1c
test eax, eax
jne 0x52ce3e
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.0052dd50
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 0x52ce39
mov edx, dword [esp + 0x74]
test edx, edx
je 0x52ce39
xor ecx, ecx
test ebx, ebx
je 0x52cdf4
lea ecx, [ebp + 7]
and ecx, 0xfffffff8
lea eax, [edx*4 + 7]
and eax, 0xfffffff8
add eax, ecx
test edx, edx
je 0x52ce39
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 0x52ce2c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x52ce39
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