Function at 0x4049fd
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x620
mov eax, 0x4bc08f
call fcn.004180a8
cmp dword [0x52048c], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x624], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x628], eax
jne 0x404a48
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x52048c], 1
lea eax, [ebp - 0x61c]
push eax
push 0x4d978c
push 1
push 0
push 0x4dd0ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x404c34
mov eax, dword [ebp - 0x61c]
lea edx, [ebp - 0x62c]
push edx
push 0x4da35c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
test edi, edi
js 0x404c28
push 0x22
pop edi
cmp word [esi], di
jne 0x404a9c
lea eax, [esi + 2]
push eax
jmp 0x404a9d
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [ebp - 0x410]
pop ecx
pop ecx
push eax
call esi
pop ecx
cmp word [ebp + eax*2 - 0x412], di
jne 0x404aec
lea eax, [ebp - 0x410]
push eax
call esi
pop ecx
lea eax, [eax*2 - 2]
cmp eax, 0x400
jae 0x404c3c
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov eax, dword [ebp - 0x61c]
lea edx, [ebp - 0x410]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x404b11
push 0
push 0
push str.SetPath_failed_
call sub.mfc140u.dll_AfxMessageBox_1
mov eax, dword [ebp - 0x61c]
push dword [ebp - 0x620]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x404b35
push 0
push 0
push str.SetDescription_failed_
call sub.mfc140u.dll_AfxMessageBox_1
mov esi, dword [ebp - 0x624]
lea eax, [ebp - 0x618]
push esi
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp + 0x14], 1
je 0x404b66
mov eax, dword [ebp - 0x61c]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x628]
test edx, edx
je 0x404b7d
mov eax, dword [ebp - 0x61c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test ebx, ebx
je 0x404b8e
mov eax, dword [ebp - 0x61c]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x62c]
lea edx, [ebp - 0x618]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
js 0x404c1c
push str.Shell_Link:
lea ecx, [ebp - 0x620]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.00401a36
mov esi, eax
push 0x4d5048
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 1
push 0x5201f0
push eax
call fcn.00401a36
push dword [esi]
push dword [eax]
call fcn.00404914
add esp, 0x20
lea ecx, [ebp - 0x628]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x624]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x62c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x61c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, edi
call fcn.00418057
ret
call fcn.00418623
int3