Function at 0x40d3b2
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x338
mov eax, 0x5c6f8f
call fcn.00595e89
mov eax, dword [ebp + 8]
and dword [ebp - 0x328], 0
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x118]
push eax
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x40d4c3
push ecx
mov ecx, esp
mov dword [ebp - 0x32c], esp
push str.CCoreFile::CreateShortcut
call fcn.004015a6
mov byte [ebp - 4], 2
push 0x1ca
push ecx
mov ecx, esp
mov dword [ebp - 0x334], esp
push str..CoreFile.cpp
call fcn.004015a6
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x330]
call fcn.004015a6
mov esi, eax
mov byte [ebp - 4], 4
push str.GetFullPathName_failed_on
lea ecx, [ebp - 0x324]
call fcn.004015a6
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x338], esp
push esi
push eax
push ecx
call fcn.004045e6
add esp, 0xc
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], 8
call fcn.0040abe3
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x324]
call fcn.00401752
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x330]
call fcn.00401752
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x40d4b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x40d8f6
lea eax, [ebp - 0x328]
push eax
push 0x61a488
push 1
push 0
push 0x61a4a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x40d88c
mov eax, dword [ebp - 0x328]
and dword [ebp - 0x334], 0
mov byte [ebp - 4], 0xb
test eax, eax
je 0x40d50e
mov ecx, dword [eax]
lea edx, [ebp - 0x334]
push edx
push 0x61ced4
push eax
call dword [ecx]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax]
lea edx, [ebp - 0x118]
push edx
push eax
call dword [ecx + 0x50]
mov edi, eax
test edi, edi
jge 0x40d5e3
push ecx
mov ecx, esp
mov dword [ebp - 0x338], esp
push str.CCoreFile::CreateShortcut
call fcn.004015a6
mov byte [ebp - 4], 0xd
push 0x1da
push ecx
mov ecx, esp
mov dword [ebp - 0x32c], esp
push str..CoreFile.cpp
call fcn.004015a6
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x330]
call fcn.004015a6
mov esi, eax
mov byte [ebp - 4], 0xf
push str.ipShellLink__SetPath_failed_on
lea ecx, [ebp - 0x324]
call fcn.004015a6
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push esi
push eax
push ecx
call fcn.004045e6
add esp, 0xc
mov byte [ebp - 4], 0x11
push edi
mov byte [ebp - 4], 0x13
call fcn.0040abe3
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x324]
call fcn.00401752
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x330]
call fcn.00401752
mov byte [ebp - 4], 1
lea eax, [ebp - 0x334]
push eax
call fcn.004af6c6
jmp 0x40d8e0
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax]
mov edi, 0x61b5f4
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
mov dword [ebp - 0x330], eax
jge 0x40d6d0
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.CCoreFile::CreateShortcut
call fcn.004015a6
mov byte [ebp - 4], 0x16
push 0x1e1
push ecx
mov ecx, esp
mov dword [ebp - 0x338], esp
push str..CoreFile.cpp
call fcn.004015a6
mov byte [ebp - 4], 0x17
push edi
lea ecx, [ebp - 0x32c]
call fcn.004015a6
mov esi, eax
mov byte [ebp - 4], 0x18
push str.ipShellLink__SetDescription_failed_on
lea ecx, [ebp - 0x324]
call fcn.004015a6
mov byte [ebp - 4], 0x19
push ecx
mov ecx, esp
mov dword [ebp - 0x340], esp
push esi
push eax
push ecx
call fcn.004045e6
add esp, 0xc
mov byte [ebp - 4], 0x1a
push dword [ebp - 0x330]
mov byte [ebp - 4], 0x1c
call fcn.0040abe3
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x324]
call fcn.00401752
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x32c]
call fcn.00401752
mov byte [ebp - 4], 1
lea eax, [ebp - 0x334]
push eax
call fcn.004af6c6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x40d6c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x330]
jmp 0x40d8f6
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x328]
push dword [ebp - 0x324]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov edi, eax
test edi, edi
jge 0x40d7a2
push ecx
mov ecx, esp
mov dword [ebp - 0x340], esp
push str.CCoreFile::CreateShortcut
call fcn.004015a6
mov byte [ebp - 4], 0x1f
push 0x1e8
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str..CoreFile.cpp
call fcn.004015a6
mov byte [ebp - 4], 0x20
push dword [ebp - 0x324]
lea ecx, [ebp - 0x330]
call fcn.004015a6
mov esi, eax
mov byte [ebp - 4], 0x21
push str.ipShellLink__SetIconLocation_failed_on
lea ecx, [ebp - 0x32c]
call fcn.004015a6
mov byte [ebp - 4], 0x22
push ecx
mov ecx, esp
mov dword [ebp - 0x338], esp
push esi
push eax
push ecx
call fcn.004045e6
add esp, 0xc
mov byte [ebp - 4], 0x23
push edi
mov byte [ebp - 4], 0x25
call fcn.0040abe3
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x32c]
call fcn.00401752
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x330]
call fcn.00401752
mov byte [ebp - 4], 1
lea eax, [ebp - 0x334]
push eax
call fcn.004af6c6
jmp 0x40d8e0
push esi
lea eax, [ebp - 0x320]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x32c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x320]
push edx
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jge 0x40d87a
push ecx
mov ecx, esp
mov dword [ebp - 0x340], esp
push str.CCoreFile::CreateShortcut
call fcn.004015a6
mov byte [ebp - 4], 0x28
push 0x1f8
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str..CoreFile.cpp
call fcn.004015a6
mov byte [ebp - 4], 0x29
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x324]
call fcn.0040dcc2
mov esi, eax
mov byte [ebp - 4], 0x2a
push str.ipPersistFile__Save_failed_on
lea ecx, [ebp - 0x32c]
call fcn.004015a6
mov byte [ebp - 4], 0x2b
push ecx
mov ecx, esp
mov dword [ebp - 0x338], esp
push esi
push eax
push ecx
call fcn.004045e6
add esp, 0xc
mov byte [ebp - 4], 0x2c
push edi
mov byte [ebp - 4], 0x2e
call fcn.0040abe3
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x32c]
call fcn.00401752
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x324]
call fcn.00401752
mov byte [ebp - 4], 1
lea eax, [ebp - 0x334]
push eax
call fcn.004af6c6
jmp 0x40d8e0
push ecx
mov ecx, esp
mov dword [ebp - 0x340], esp
push str.CCoreFile::CreateShortcut
call fcn.004015a6
mov byte [ebp - 4], 0x30
push 0x1fd
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str..CoreFile.cpp
call fcn.004015a6
mov byte [ebp - 4], 0x31
push ecx
mov ecx, esp
mov dword [ebp - 0x338], esp
push str.CoCreateInstance_failed.
call fcn.004015a6
mov byte [ebp - 4], 0x32
push edi
mov byte [ebp - 4], 1
call fcn.0040abe3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x40d8f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
call fcn.00595f0c
ret