Function at 0x584a4c
Capabilities:
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
push 0x248
mov eax, 0x60ad3e
call fcn.004db4be
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push str.ShareFile.bat
push eax
call fcn.0050737f
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x584d71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x584d6a
push 0x10
pop ecx
mov dword [ebp - 0x224], ecx
cmp eax, ecx
jb 0x584d6a
push ebx
push eax
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x248], esi
test esi, esi
je 0x584d6a
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x584b33
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x584d71
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0xc], 1
jne 0x584d71
mov ecx, dword [ebp - 0x220]
lea edx, [ebx + 0x10]
mov eax, dword [ebx]
and dword [ebp - 0x244], 0
mov dword [ebp - 0x220], edx
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x254], eax
test eax, eax
jle 0x584d4a
lea ecx, [ebp - 0x238]
call fcn.00408615
and dword [ebp - 4], 0
test edx, edx
je 0x584d39
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebx + 8]
jg 0x584d39
lea eax, [ebp - 0x220]
push eax
call fcn.00451aed
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x228]
mov edi, dword [eax - 8]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ecx - 8]
mov dword [ebp - 0x24c], ecx
mov edx, dword [eax - 8]
mov eax, dword [ebp - 0x230]
mov esi, dword [eax - 8]
add ecx, esi
mov eax, dword [ebp - 0x22c]
add ecx, dword [eax - 8]
mov eax, dword [ebp - 0x224]
add ecx, edx
add ecx, edi
add eax, 5
add eax, ecx
mov dword [ebp - 0x224], eax
test esi, esi
je 0x584d0a
push dword [ebp - 0x228]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x24c]
call fcn.0040f454
cmp dword [ebp + 0x10], 0
je 0x584c29
mov esi, 0x634970
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0x230]
call fcn.0040f454
mov esi, dword [ebp - 0x250]
mov ecx, esi
push 2
push dword [ebp - 0x230]
call fcn.00472f2f
test eax, eax
je 0x584d0a
mov eax, dword [esi + 4]
mov ecx, esi
dec eax
push eax
call fcn.0042b614
mov esi, dword [eax]
mov dword [ebp - 0x24c], esi
test esi, esi
je 0x584c62
lock inc dword [esi + 4]
push str.Artist
lea ecx, [ebp - 0x23c]
mov dword [esi + 0x28], 1
call fcn.0041ddcb
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.00421f8b
mov ecx, dword [ebp - 0x23c]
mov edi, 0x668010
add ecx, 0xfffffff4
cmp ecx, edi
je 0x584ca9
call fcn.00407965
push str.Title
lea ecx, [ebp - 0x240]
call fcn.0041ddcb
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x240]
mov ecx, esi
push eax
call fcn.00421f8b
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff4
cmp ecx, edi
je 0x584ce4
call fcn.00407965
push dword [ebp - 0x22c]
mov ecx, esi
call fcn.0044e4d1
lea eax, [ebp - 0x228]
push eax
lea ecx, [esi + 0x8c]
call fcn.0040d242
mov ecx, esi
call fcn.00416ed3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0040863f
mov edi, dword [ebp - 0x244]
inc edi
mov dword [ebp - 0x244], edi
cmp edi, dword [ebp - 0x254]
jge 0x584d44
mov edx, dword [ebp - 0x220]
jmp 0x584b6f
lea ecx, [ebp - 0x238]
call fcn.0040863f
mov esi, dword [ebp - 0x248]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x584d73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004db46d
ret 0xc