Function at 0x404f70
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4672f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
push esi
call fcn.00423030
add esp, 4
test eax, eax
je 0x405125
push edi
call fcn.00423030
add esp, 4
test eax, eax
je 0x404fcd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0xc]
push eax
push 0x472368
push 1
push 0
push 0x472398
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40500f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x2bf
push str.Line_no_d_source_s_CreateShortcut_CoCreateInstance_failed_error_d._r_n
call fcn.0040cfa0
add esp, 0x10
xor eax, eax
jmp 0x40518f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x46ceac
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x472388
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x405077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x2cb
push str.Line_no_d_source_s_CreateShortcut_QueryInterface_failed_error_d._r_n
call fcn.0040cfa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0x10
push eax
call edx
xor eax, eax
jmp 0x40518f
cmp dword [esp + 0x6c], 0
je 0x405143
push esi
lea ecx, [esp + 0x38]
call fcn.00404430
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0
mov dword [esp + 0x20], 0x5c
call fcn.00401ad0
cmp eax, 0xffffffff
je 0x405132
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004044a0
cmp dword [esp + 0x30], 8
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x5c], 1
jae 0x4050d8
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
test eax, eax
jge 0x405129
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x2da
push str.Line_no_d_source_s_CreateShortcut_SetWorkingDirectory_failed_error_d._r_n
call fcn.0040cfa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0x10
push eax
call edx
lea ecx, [esp + 0x18]
call fcn.004021f0
lea ecx, [esp + 0x34]
call fcn.004021f0
xor eax, eax
jmp 0x40518f
lea ecx, [esp + 0x18]
call fcn.004021f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004021f0
push esi
call fcn.00423030
add esp, 4
test eax, eax
je 0x40515f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 2
push edi
push eax
call edx
mov esi, eax
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
xor eax, eax
test esi, esi
setge al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x54
ret