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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1714
call fcn.00456340
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a6ae8], 0
je 0x406071
push 0x257
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4b4], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x4b4]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406071
push edi
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x25c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x405e85
mov ax, word [0x480958]
mov edx, 0x6ae4cc
push esi
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x405ea0
lea edi, [ebp - 0x25c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405eb0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x25c]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405ed0
mov eax, dword [str..lnk]
xor edi, edi
mov dword [ecx], eax
mov al, byte [0x4809e0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ecx + 4], al
push 0x257
lea eax, [ebp - 0x70b]
mov dword [ebp - 0x1710], 0
push 0
push eax
mov dword [ebp - 0x1714], 0
mov byte [ebp - 0x70c], 0
call fcn.00451650
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1710]
push eax
push 0x4802e8
push 1
push 0
push 0x480538
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x406044
mov eax, dword [ebp - 0x1710]
lea edx, [ebp - 0x4b4]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
xor eax, eax
jmp 0x405f70
mov cl, byte [ebp + eax - 0x4b4]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x70d], cl
test cl, cl
jne 0x405f70
lea eax, [ebp - 0x70c]
push 0x5c
push eax
call fcn.00456990
add esp, 8
test eax, eax
je 0x405f9e
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x1710]
lea edx, [ebp - 0x70c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x1710]
lea edx, [ebp - 0x1714]
push edx
push 0x480328
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
js 0x406036
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x170c], ax
lea eax, [ebp - 0x170a]
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x170c]
push 0x800
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1714]
lea edx, [ebp - 0x170c]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x1714]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x1710]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
js 0x406060
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x40606e
push 0x1e
call ebx
inc edi
cmp edi, 0xa
jl 0x405ef2
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret