Function at 0x4022d0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x467986
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x328], eax
push esi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x334]
mov dword fs:[0], eax
push 0
mov dword [esp + 0x340], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40257c
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40233d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x340], 2
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x402552
lea edx, [esp + 0x14]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x402552
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x4023d0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 8]
call fcn.004018a0
lea ecx, [esp + 0x344]
call fcn.004018a0
lea ecx, [esp + 0x348]
call fcn.004018a0
jmp 0x4025d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push 0x46ea2c
push ecx
call fcn.00401f50
add esp, 0xc
push 0x46ead0
lea ecx, [esp + 0xc]
call fcn.004021c0
mov eax, dword [esp + 0x344]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00401e60
push str..lnk
lea ecx, [esp + 0xc]
call fcn.004021c0
lea edx, [esp + 0xc]
push edx
push 0x47a570
push 1
push 0
push 0x47a5f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4023a4
push 0x46eab8
lea eax, [esp + 0x34c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00401d80
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x50]
push ecx
mov byte [esp + 0x344], 3
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x33c], 2
call fcn.004018a0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x348]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x47a5b0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x402535
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x12c]
push ecx
push 0xffffffffffffffff
push edx
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x12c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
jl 0x40253f
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 8]
call fcn.004018a0
lea ecx, [esp + 0x344]
call fcn.004018a0
lea ecx, [esp + 0x348]
call fcn.004018a0
mov eax, 1
jmp 0x4025d7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4023a4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x33c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40257c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x344]
add eax, 0xfffffff0
mov byte [esp + 0x33c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x348]
add eax, 0xfffffff0
mov dword [esp + 0x33c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004517f0
add esp, 0x338
ret 8