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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52245d
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 0x42f77a
lea eax, [edx + 1]
jmp 0x42fcd2
mov dword [ebp - 4], 0
test esi, esi
jne 0x42f78d
lea eax, [esi + 0x57]
jmp 0x42fcd2
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004fb2d0
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 0x53ca10
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.0040c6e0
cmp word [esi], 0
jne 0x42f7e8
xor ecx, ecx
jmp 0x42f7ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f7f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.0040c6e0
push 4
push str..lnk
lea ecx, [ebp - 0x268]
call fcn.0040c6e0
cmp dword [ebp + 8], 0
je 0x42f85e
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 0x42f85e
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.004fb2d0
push edi
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0050136b
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 0x42fc7d
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], eax
mov word [ebp - 0x238], ax
cmp word [edi], ax
jne 0x42f8e2
xor ecx, ecx
jmp 0x42f8f6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f8e7
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 0x42f952
cmp word [ebx], ax
jne 0x42f931
xor ecx, ecx
jmp 0x42f945
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f936
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x250]
call fcn.00402570
push 1
push 0
push 0x53e4b0
lea ecx, [ebp - 0x238]
call fcn.00414440
push 1
push 0xffffffffffffffff
push 0x53e4b0
lea ecx, [ebp - 0x238]
mov edi, eax
call fcn.004143c0
mov esi, eax
cmp edi, 0xffffffff
je 0x42fabb
cmp esi, 0xffffffff
je 0x42fabb
cmp edi, esi
je 0x42fabb
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.0040c0b0
mov ebx, eax
lea eax, [ebp - 0x250]
cmp eax, ebx
je 0x42fa0a
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x42f9e1
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 0x42fa2c
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.0040c0b0
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x42fa99
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x42fa70
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 0x42fabb
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 0x42fc63
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 0x42fc63
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 0x42fc63
mov edx, dword [ebp - 0x28c]
test edx, edx
je 0x42fb47
mov eax, dword [ebp - 0x284]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x42fc63
mov eax, dword [ebp - 0x284]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
js 0x42fc63
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 0x42fc63
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 0x42fbdb
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 0x42fcd2
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 0x42fc22
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 0x42fc7d
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00402f10
jmp 0x42fc7d
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 0x42fcd0
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.00402f10
jmp 0x42fcd0
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.004e1bb1
mov esp, ebp
pop ebp
ret