Function at 0x402160
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 0x408140
push 1
push 0
push 0x408150
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x402199
push esi
push str._nCoCreateInstance___returned___d_
call fcn.004029c7
add esp, 8
test esi, esi
jl 0x4021fd
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x408160
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021c9
push esi
push str._nIShellLink::QueryInterface___returned___d_
call fcn.004029c7
add esp, 8
test esi, esi
jl 0x402402
mov eax, dword [esp + 4]
push 0x40c61d
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
jge 0x402207
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetPath___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
push 0x40c827
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
test esi, esi
jge 0x40223d
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetArguments___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
push 0x40ca31
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
jge 0x402273
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetWorkingDirectory___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
mov ecx, dword [0x40cc3c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x3c]
mov esi, eax
test esi, esi
jge 0x4022af
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetShowCmd___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
mov ecx, dword [0x40ce4c]
push ecx
push 0x40cc40
mov edx, dword [eax]
push eax
call dword [edx + 0x44]
mov esi, eax
test esi, esi
jge 0x4022f0
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetIconLocation___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
mov cx, word [0x40ce50]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
mov esi, eax
test esi, esi
jge 0x40232d
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetHotkey___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 4]
push 0x40ce52
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
jge 0x402367
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIShellLink::SetDescription___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push 0x40c518
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jge 0x4023be
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIPersistFile::Save___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x4023f8
mov eax, dword [0x40cf58]
test eax, eax
je 0x4021fd
push esi
push str._nIPersistFile::SaveCompleted___failed_with___i_
call fcn.004029c7
add esp, 8
mov eax, esi
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
test esi, esi
jl 0x4021fd
xor eax, eax
pop esi
add esp, 0x210
ret