Function at 0x40fa00
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4735fb
mov eax, dword fs:[0]
push eax
sub esp, 0xdb4
mov eax, dword [0x48e300]
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
cmp dword [0x491fec], 0
jne 0x40fa62
push 0xc
call fcn.00420692
add esp, 4
test eax, eax
je 0x40fa5b
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x40fa5d
xor eax, eax
mov dword [0x491fec], eax
push ecx
push str.360lnk2
push str.window
call fcn.004012c0
cmp dword [0x491fec], 0
mov esi, eax
jne 0x40faa8
push 0xc
call fcn.00420692
add esp, 4
test eax, eax
je 0x40faa1
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x40faa3
xor eax, eax
mov dword [0x491fec], eax
push ecx
push str.360lnkName2
push str.window
call fcn.004012c0
mov ebx, eax
test esi, esi
je 0x40fd65
test ebx, ebx
je 0x40fd65
push 0x3ff
lea eax, [ebp - 0x517]
push 0
push eax
mov byte [ebp - 0x518], 0
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x518]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edi, [ebp - 0x518]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40fb10
mov ax, word [0x4819e0]
mov word [edi], ax
lea eax, [ebp - 0x518]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x40fb30
mov ecx, dword [str.64.ico]
mov dword [eax], ecx
mov cx, word [0x4824d0]
mov word [eax + 4], cx
mov cl, byte [0x4824d2]
push 0x3ff
mov byte [eax + 6], cl
lea eax, [ebp - 0x917]
push 0
push eax
mov byte [ebp - 0x918], 0
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x918]
push esi
push str.URL_s
push eax
call fcn.00421255
add esp, 0xc
lea eax, [ebp - 0xd17]
push 0x3ff
push 0
push eax
mov byte [ebp - 0xd18], 0
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0xd18]
push str.IconFile_s
push eax
call fcn.00421255
add esp, 0xc
lea eax, [ebp - 0x117]
push 0x103
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x118]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40fbf7
mov ax, word [0x4819e0]
mov word [edi], ax
mov esi, ebx
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40fc10
lea edi, [ebp - 0x118]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fc20
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0xdc0]
call fcn.0040ccd0
mov edx, str._000214A0_0000_0000_C000_000000000046_
lea ecx, [ebp - 0xdc0]
mov dword [ebp - 4], 0
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
mov edx, str.Prop319_2
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
mov edx, str._InternetShortcut_
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
lea edx, [ebp - 0x918]
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
mov edx, str.IDList
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
mov edx, str.HotKey0
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
lea edx, [ebp - 0xd18]
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
mov edx, str.IconIndex0
lea ecx, [ebp - 0xdc0]
call fcn.0040e2e0
mov ecx, eax
call fcn.0040e5a0
lea ecx, [ebp - 0xdbc]
call fcn.0040d970
test eax, eax
jne 0x40fd5a
mov eax, dword [ebp - 0xdc0]
lea ecx, [ebp - 0xdc0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40fd48
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40fd5a
push 0
call fcn.0040c650
lea ecx, [ebp - 0xdc0]
call fcn.0040c810
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.00420548
mov esp, ebp
pop ebp
ret