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

Disassembly:
push 0xffffffffffffffff
push 0x45b5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x4751f0]
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.00417f70
add esp, 4
test eax, eax
je 0x404894
push edi
call fcn.00417f70
add esp, 4
test eax, eax
je 0x40474d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0xc]
push eax
push 0x4640b0
push 1
push 0
push 0x4640e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40478f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x1fe
push str.Line_no_d_source_s_CreateShortcut_CoCreateInstance_failed_error_d._r_n
call fcn.0040c370
add esp, 0x10
xor eax, eax
jmp 0x4048fe
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]
lea edx, [esp + 0x10]
push edx
push 0x4640d0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x4047e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x209
push str.Line_no_d_source_s_CreateShortcut_QueryInterface_failed_error_d._r_n
call fcn.0040c370
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 0x4048fe
cmp dword [esp + 0x6c], 0
je 0x4048b2
push esi
lea ecx, [esp + 0x38]
call fcn.00404180
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.00401a90
cmp eax, 0xffffffff
je 0x4048a1
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004041f0
cmp dword [esp + 0x30], 8
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x5c], 1
jae 0x404847
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 0x404898
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..common.cpp
push 0x218
push str.Line_no_d_source_s_CreateShortcut_SetWorkingDirectory_failed_error_d._r_n
call fcn.0040c370
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.00402300
lea ecx, [esp + 0x34]
call fcn.00402300
xor eax, eax
jmp 0x4048fe
lea ecx, [esp + 0x18]
call fcn.00402300
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00402300
push esi
call fcn.00417f70
add esp, 4
test eax, eax
je 0x4048ce
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.00444b03
add esp, 0x54
ret