Function at 0x40c340
Capabilities:
Create shortcut via ishelllink
Delete file
Get common file path
Move file
Persist via lnk shortcut

Disassembly:
push 0xffffffffffffffff
push 0x4dcef4
mov eax, dword fs:[0]
push eax
sub esp, 0x8b4
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x8b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x8c8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8d8]
xor ebx, ebx
push 0x206
mov dword [esp + 0x8d4], ebx
lea eax, [esp + 0x4ba]
push ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x4c0], bx
call fcn.004b9920
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x14]
push ecx
push 0x4e68cc
push 1
push ebx
push 0x4e68dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40c657
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x18]
push ecx
push 0x4e690c
push eax
call edx
cmp eax, ebx
jl 0x40c657
mov edi, 7
mov eax, ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c410
sub eax, edx
sar eax, 1
push eax
push ebp
lea esi, [esp + 0x28]
call fcn.00407ef0
mov eax, esi
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x8d4], 1
call fcn.00442c5a
add esp, 4
mov byte [esp + 0x8d0], 2
cmp dword [eax + 0x18], 8
jb 0x40c454
mov eax, dword [eax + 4]
jmp 0x40c457
add eax, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
cmp dword [esp + 0x54], 8
mov esi, eax
jb 0x40c47b
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004b6eae
add esp, 4
mov byte [esp + 0x8d0], bl
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x40c4a3
mov edx, dword [esp + 0x24]
push edx
call fcn.004b6eae
add esp, 4
cmp esi, ebx
jl 0x40c657
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 4
lea edx, [esp + 0x60]
push edx
push 0x104
lea edx, [esp + 0x4c0]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x40c657
lea eax, [esp + 0x88]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c4e0
sub eax, edx
sar eax, 1
je 0x40c657
lea edi, [esp + 0x88]
call fcn.0040c2a0
cmp eax, 0xffffffff
je 0x40c657
push 1
push 0x15
lea ecx, [esp + 0x6c4]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c657
mov edx, edi
push edx
lea eax, [esp + 0x6c0]
push eax
lea ecx, [esp + 0x2b4]
push str._s_s.lnk
push ecx
call fcn.004b7b68
mov ecx, dword [esp + 0x8f0]
add esp, 0x10
cmp dword [esp + 0x8f4], 8
jae 0x40c55d
lea ecx, [esp + 0x8e0]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
cmp eax, ebx
jl 0x40c657
lea eax, [esp + 0x2ac]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c590
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2b0]
push ecx
lea esi, [esp + 0x28]
call fcn.00407ef0
mov edx, esi
push edx
lea eax, [esp + 0x40]
mov byte [esp + 0x8d4], 3
call fcn.00442c5a
add esp, 4
mov edi, 8
mov byte [esp + 0x8d0], 4
cmp dword [eax + 0x18], edi
jb 0x40c5df
mov eax, dword [eax + 4]
jmp 0x40c5e2
add eax, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
cmp dword [esp + 0x54], edi
mov esi, eax
jb 0x40c606
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004b6eae
add esp, 4
mov byte [esp + 0x8d0], bl
cmp dword [esp + 0x38], edi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x40c631
mov edx, dword [esp + 0x24]
push edx
call fcn.004b6eae
add esp, 4
cmp esi, ebx
jl 0x40c657
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c657
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40c667
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c677
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x8f4], 8
jb 0x40c691
mov eax, dword [esp + 0x8e0]
push eax
call fcn.004b6eae
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8b0]
xor ecx, esp
call fcn.004b6e9f
add esp, 0x8c0
ret