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

Disassembly:
push 0xffffffffffffffff
push 0x43ffeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x454740]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov eax, dword [0x454740]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, 3
push 0
mov dword [esp + 0x23c], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x407e9b
call fcn.0040bfa1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407e0f
push 0x80004005
call fcn.00401700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x23c], 4
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x407e72
lea edx, [esp + 0x1c]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x407e72
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x407f72
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
mov byte [esp + 0x238], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x238], 2
mov eax, dword [esp + 0x240]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ec6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x238], 1
mov eax, dword [esp + 0x244]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0x248]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x24c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00429f2c
add esp, 0x230
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
push 0x449868
push ecx
call fcn.004025d0
add esp, 0xc
push 0x4498e4
lea ecx, [esp + 0x10]
call fcn.004052e0
mov eax, dword [esp + 0x240]
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.00402470
push 0x4498e8
lea ecx, [esp + 0x10]
call fcn.004052e0
lea eax, [esp + 0x10]
push eax
push 0x447f8c
push 1
push 0
push 0x447f9c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4080d6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x244]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x248]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ecx, dword [esp + 0x24c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408033
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24c]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push 0
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x447fcc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
jl 0x4080c4
mov edx, dword [esp + 0xc]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
jl 0x4080c8
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0xc]
call fcn.00402b10
lea ecx, [esp + 0x240]
call fcn.00402b10
lea ecx, [esp + 0x244]
call fcn.00402b10
lea ecx, [esp + 0x248]
call fcn.00402b10
lea ecx, [esp + 0x24c]
call fcn.00402b10
mov eax, 1
jmp 0x407f4c
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0xc]
call fcn.00402b10
lea ecx, [esp + 0x240]
call fcn.00402b10
lea ecx, [esp + 0x244]
call fcn.00402b10
lea ecx, [esp + 0x248]
call fcn.00402b10
lea ecx, [esp + 0x24c]
call fcn.00402b10
jmp 0x407f4a