Function at 0x409460
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c850d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4e7744]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, 0x7ffffffe
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40989e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4094b1
mov eax, dword [edi]
push 1
push 0x4c996c
push ecx
push eax
push edi
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
call fcn.00401b00
push str.Synology_Drive_Client.lnk
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401400
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x409520
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409516
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4098a3
push edx
push ecx
call fcn.004aa4d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x14], 7
call fcn.00404230
add esp, 4
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x59], 0
mov esi, dword [eax]
cmp esi, eax
je 0x409844
mov ecx, dword [edi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40989e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x409572
mov eax, dword [edi]
push 1
push 0x4c996c
push ecx
push eax
push edi
push dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
call fcn.00401b00
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov byte [ebp - 4], 4
jb 0x409597
mov eax, dword [esi + 8]
push dword [esi + 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00409d10
mov edx, eax
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0x28]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
cmp edx, 8
jb 0x40962a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409620
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4098a3
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40967c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409672
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4098a3
push edx
push ecx
call fcn.004aa4d8
add esp, 8
cmp dword [ebp - 0x60], 0
je 0x4097b1
mov ecx, dword [edi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40989e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4096a3
mov eax, dword [edi]
push 1
push 0x4c996c
push ecx
push eax
push edi
push dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
call fcn.00401b00
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov byte [ebp - 4], 5
jb 0x4096c8
mov eax, dword [esi + 8]
push dword [esi + 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00409d10
mov edx, eax
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0x28]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409758
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40974e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4098a3
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4097aa
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4097a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4098a3
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov dl, 1
mov byte [ebp - 0x59], dl
jmp 0x4097b4
mov dl, byte [ebp - 0x59]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x6c]
jne 0x409555
test dl, dl
je 0x409844
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
mov ebx, dword [ebp - 0x64]
cmovae esi, dword [ebp - 0x58]
cmp dword [ebx + 0x14], 8
jb 0x4097dd
mov ebx, dword [ebx]
lea eax, [ebp - 0x64]
push eax
push 0x4d6800
push 1
push 0
push 0x4d68a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x409844
mov eax, dword [ebp - 0x64]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x64]
push str.Synology_Drive_Client
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
push edx
push 0x4d6894
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x40983b
mov eax, dword [ebp - 0x60]
push 1
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x6c]
call fcn.004023c0
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x409882
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409878
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4098a8
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aa4f4
mov esp, ebp
pop ebp
ret
call fcn.00409af0
call fcn.004aeecf
call fcn.004aeecf
int3