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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51e9a7
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0x38]
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x34], eax
call fcn.004caee7
xor edi, edi
push edi
push str.MPEGS
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0x264], edi
call fcn.004ccbf5
fldz
mov eax, dword [esi + 0xc0]
fstp qword [esp + 0x34]
cmp eax, edi
je 0x41e8bc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
jmp 0x41e618
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
je 0x41e905
mov esi, dword [eax + 8]
mov edx, dword [eax]
fild dword [esi + 0x18]
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [esp + 0x18], edx
jge 0x41e639
fadd qword [0x531a88]
fdiv qword [0x5319c8]
lea ecx, [esp + 0xa4]
fstp qword [esp + 0x4c]
call fcn.004cc07e
push edi
call fcn.004e7808
fldz
lea ecx, [esp + 0x5c]
fstp qword [esp + 0x44]
mov dword [esp + 0x60], edx
push ecx
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], eax
call fcn.004e7543
add esp, 0xc
cmp eax, edi
jne 0x41e704
mov eax, dword [esp + 0x94]
movzx edx, word [esp + 0x98]
mov ecx, dword [esp + 0x90]
add eax, 0x76c
add ecx, 1
mov word [esp + 0x1c], ax
movzx eax, word [esp + 0x8c]
mov word [esp + 0x1e], cx
mov cx, word [esp + 0x88]
mov word [esp + 0x20], dx
movzx edx, word [esp + 0x84]
mov word [esp + 0x24], cx
mov word [esp + 0x22], ax
movzx eax, word [esp + 0x80]
lea ecx, [esp + 0x40]
mov word [esp + 0x26], dx
push ecx
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x30], ax
mov word [esp + 0x32], di
call fcn.00416ce0
add esp, 8
test eax, eax
mov dword [esp + 0x48], edi
jne 0x41e70c
mov dword [esp + 0x48], 1
call fcn.004b4151
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x41e90a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x531c88
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 1
call fcn.004160f0
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
push eax
push edx
lea eax, [esp + 0x1c]
push str._s____s
push eax
mov byte [esp + 0x268], 2
call fcn.00402fab
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x258], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e795
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
push eax
call ebx
push eax
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x13c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
mov edi, dword [esp + 0x14]
push edi
push str.MediaGroup
lea ecx, [esp + 0xac]
call fcn.004ca8c1
lea eax, [esp + 0x13c]
push eax
push 0x5311c4
lea ecx, [esp + 0xac]
call fcn.004ca8c1
mov esi, dword [esi + 4]
push esi
call ebx
push eax
push str.FullPath
lea ecx, [esp + 0xac]
call fcn.004ca8c1
fld qword [esp + 0x4c]
fstp qword [esp + 0x78]
mov word [esp + 0x70], 5
lea ecx, [esp + 0x70]
push ecx
push 0x531398
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 3
call fcn.004cc296
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x70]
push edx
call esi
fld qword [esp + 0x34]
fstp qword [esp + 0x68]
mov word [esp + 0x60], 5
lea eax, [esp + 0x60]
push eax
push str.Offset
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 4
call fcn.004cc296
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x25c], 1
call esi
lea ecx, [esp + 0xa4]
call fcn.004cc138
fld qword [esp + 0x34]
fadd qword [esp + 0x4c]
lea eax, [edi - 0x10]
mov byte [esp + 0x258], 0
lea edx, [eax + 0xc]
fstp qword [esp + 0x34]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e8b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
jne 0x41e612
lea ecx, [esp + 0xa4]
call fcn.004cad1a
lea ecx, [esp + 0xa4]
mov dword [esp + 0x258], 0xffffffff
call fcn.004caf79
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004e2867
mov esp, ebp
pop ebp
ret 4
call fcn.004b3efb
push 0x80004005
call fcn.004010bd
int3