Function at 0x406ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dc6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov edi, dword [ebx + 0xc]
xor eax, eax
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x42], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x400
mov byte [ebp - 4], 1
push 0x14
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.0041be18
mov dword [ebp - 0x5c], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.0040c6e0
cmp dword [eax + 0x30], 0
je 0x406c6c
mov dword [ebp - 0x54], 0
jmp 0x406d5a
push str.playlist_index
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040c4c0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x50]
shl eax, 5
add eax, dword [ebp - 0x48]
cmp ecx, eax
je 0x406cf2
movzx eax, word [ecx + 0x1e]
mov edx, eax
shr al, 5
test al, 1
je 0x406c9f
mov eax, dword [ecx + 0x10]
cdq
jmp 0x406ce3
shr dl, 7
test dl, 1
je 0x406caf
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
jmp 0x406ce3
mov eax, 0x200
test word [ecx + 0x1e], ax
je 0x406cf2
movsd xmm1, qword [ecx + 0x10]
comisd xmm1, xmmword [0x437eb8]
jb 0x406cf2
movsd xmm0, qword [0x437ea0]
comisd xmm0, xmm1
jb 0x406cf2
movaps xmm0, xmm1
cvtpd2ps xmm0, xmm0
call fcn.0042dae0
test edx, edx
jl 0x406cf2
jg 0x406ced
test eax, eax
je 0x406cf2
mov dword [ebp - 0x5c], edx
jmp 0x406cfd
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov eax, dword [ebp - 0x60]
mov dword [edi], eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x54]
push str.title
mov eax, dword [eax + 0x60]
mov dword [edi + 4], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040c4c0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x50]
shl eax, 5
add eax, dword [ebp - 0x48]
cmp ecx, eax
je 0x406d53
mov ax, word [ecx + 0x1e]
shr ax, 0xa
test al, 1
je 0x406d53
add ecx, 0x10
mov eax, 0x1000
test word [ecx + 0xe], ax
jne 0x406d45
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x406d53
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
mov dword [ebp - 0x54], 1
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x406da6
cmp dword [edi], 0
je 0x406d7f
mov eax, dword [edi]
cmp eax, dword [edi + 8]
je 0x406d7f
mov esi, dword [eax + 8]
push eax
call fcn.0041f020
add esp, 4
mov dword [edi], esi
test esi, esi
jne 0x406d66
mov eax, dword [edi]
test eax, eax
je 0x406d91
cmp eax, dword [edi + 8]
jne 0x406d91
mov dword [eax + 4], 0
push 1
push dword [edi + 0x10]
call fcn.0041bbea
push 0x14
push edi
call fcn.0041bbea
add esp, 0x10
push dword [ebp - 0x30]
call fcn.0041f020
add esp, 4
push 1
push dword [ebp - 0x34]
call fcn.0041bbea
mov eax, dword [ebp - 0x54]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8