Function at 0x42f9e0
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5226bd
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x28c], esi
mov ebx, dword [ebp + 0xc]
test edi, edi
jne 0x42fa2a
lea eax, [edx + 1]
jmp 0x42ff82
mov dword [ebp - 4], 0
test esi, esi
jne 0x42fa3d
lea eax, [esi + 0x57]
jmp 0x42ff82
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004fb530
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
call fcn.00403170
push 1
push 0x53ca00
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.0040c780
cmp word [esi], 0
jne 0x42fa98
xor ecx, ecx
jmp 0x42faaf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42faa0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.0040c780
push 4
push str..lnk
lea ecx, [ebp - 0x268]
call fcn.0040c780
cmp dword [ebp + 8], 0
je 0x42fb0e
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fb0e
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004fb530
push edi
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0050157b
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x284]
push eax
push 0x52cea8
push 1
push 0
push 0x52cee8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x42ff2d
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], eax
mov word [ebp - 0x238], ax
cmp word [edi], ax
jne 0x42fb92
xor ecx, ecx
jmp 0x42fba6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fb97
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x238]
call fcn.00402570
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x42fc02
cmp word [ebx], ax
jne 0x42fbe1
xor ecx, ecx
jmp 0x42fbf5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fbe6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x250]
call fcn.00402570
push 1
push 0
push 0x53e4e8
lea ecx, [ebp - 0x238]
call fcn.00414520
push 1
push 0xffffffffffffffff
push 0x53e4e8
lea ecx, [ebp - 0x238]
mov edi, eax
call fcn.004144a0
mov esi, eax
cmp edi, 0xffffffff
je 0x42fd6b
cmp esi, 0xffffffff
je 0x42fd6b
cmp edi, esi
je 0x42fd6b
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x238]
sub eax, esi
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0040c150
mov ebx, eax
lea eax, [ebp - 0x250]
cmp eax, ebx
je 0x42fcba
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x42fc91
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00402f10
xor eax, eax
mov dword [ebp - 0x23c], 7
push ebx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
call fcn.004032f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x42fcdc
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00402f10
sub esi, edi
lea eax, [edi + 1]
dec esi
lea ecx, [ebp - 0x238]
push esi
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0040c150
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x42fd49
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x42fd20
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00402f10
xor eax, eax
mov dword [ebp - 0x224], 7
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.004032f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x42fd6b
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00402f10
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae edx, dword [ebp - 0x238]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x42ff13
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
cmovae edx, dword [ebp - 0x250]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov esi, eax
test esi, esi
js 0x42ff13
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
js 0x42ff13
mov edx, dword [ebp - 0x28c]
test edx, edx
je 0x42fdf7
mov eax, dword [ebp - 0x284]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x42ff13
mov eax, dword [ebp - 0x284]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
js 0x42ff13
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x288]
push edx
push 0x52ced8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x42ff13
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax]
je 0x42fe8b
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x250]
call fcn.00402450
lea ecx, [ebp - 0x238]
call fcn.00402450
lea ecx, [ebp - 0x268]
call fcn.00402450
xor eax, eax
jmp 0x42ff82
cmp dword [ebp - 0x254], 8
lea edx, [ebp - 0x268]
push 1
cmovae edx, dword [ebp - 0x268]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x288]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x42fed2
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00402f10
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x250], ax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
cmp eax, 8
jb 0x42ff2d
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00402f10
jmp 0x42ff2d
lea ecx, [ebp - 0x250]
call fcn.00402450
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.00402450
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x42ff80
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.00402f10
jmp 0x42ff80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret