Function at 0x487050
Capabilities:
Check if file exists
Copy file
Create shortcut via ishelllink
Delete file
Get common file path
Persist via lnk shortcut

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5077
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4fa7e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34c], esi
mov eax, dword [ebx + 0x18]
cmp dword [eax - 0xc], 0
je 0x4874b2
mov eax, dword [ebx + 0x1c]
cmp dword [eax - 0xc], 0
je 0x4874b2
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4870c0
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x330], eax
mov dword [ebp - 4], 0
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4870f3
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x340], eax
mov byte [ebp - 4], 1
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x487123
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 2
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x487153
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x33c], eax
push 0
push 0x4ee565
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 3
call fcn.00487e40
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x338]
call fcn.00486ab0
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x340]
call fcn.00486ab0
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x330]
call fcn.00486ab0
push 0
push 0x10
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
or edi, 0xffffffff
test eax, eax
je 0x487425
lea ecx, [ebp - 0x124]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4871d6
sub ecx, edx
lea eax, [ebp - 0x124]
push ecx
push eax
lea ecx, [ebp - 0x330]
call fcn.00487e40
push 1
push 0x4d9d94
lea ecx, [ebp - 0x330]
call fcn.00486e20
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x330]
push dword [eax - 0xc]
push eax
call fcn.00486e20
push 4
push str..lnk
lea ecx, [ebp - 0x330]
call fcn.00486e20
mov eax, dword [0x4d9da8]
movq xmm0, qword [str.__sEzRun.exe_]
mov dword [ebp - 0x18], eax
mov ax, word [0x4d9dac]
mov word [ebp - 0x14], ax
mov al, byte [0x4d9dae]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x340]
movq qword [ebp - 0x20], xmm0
push eax
call fcn.00487810
add esp, 0xc
lea eax, [ebx + 0x1c]
lea ecx, [ebp - 0x33c]
push eax
call fcn.00486ab0
mov eax, dword [ebx + 0x20]
cmp dword [eax - 0xc], 0
je 0x487307
lea ecx, [ebp - 0x348]
call fcn.004862a0
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 4
push eax
push dword [ebx + 0x20]
call fcn.004884c0
mov esi, dword [ebp - 0x348]
add esp, 8
test eax, eax
je 0x4872e8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4872e8
push dword [ebx + 0x18]
lea eax, [ebp - 0x338]
push dword [ebp - 0x34c]
push str._s_s.ico
push eax
call fcn.00487810
add esp, 0x10
push 0
push dword [ebp - 0x338]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48731c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48731c
push esi
lea eax, [ebp - 0x338]
push str._sEzPlatform.ico
push eax
call fcn.00487810
add esp, 0xc
push 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x344], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x487425
lea eax, [ebp - 0x334]
push eax
push 0x4e3748
push 1
push 0
push 0x4e3a78
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48741f
mov eax, dword [ebp - 0x334]
push dword [ebp - 0x340]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x334]
push dword [ebp - 0x33c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x334]
push 0
push dword [ebp - 0x338]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x334]
lea edx, [ebp - 0x344]
push edx
push 0x4e3a28
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x487413
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x32c], ax
lea eax, [ebp - 0x32a]
push eax
call fcn.004b4310
add esp, 0xc
lea eax, [ebp - 0x32c]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp - 0x330]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x344]
lea edx, [ebp - 0x32c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x334]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x33c]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x487448
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x338]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48746b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x340]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48748e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x330]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4874b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3861
mov esp, ebp
pop ebp
ret