Function at 0x40fc60
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dfa9
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x48f00c]
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 eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x640]
mov ebx, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x678], ebx
mov dword [ebp - 0x67c], eax
call fcn.00428aa0
mov edi, eax
mov edx, ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x658]
call fcn.00428aa0
mov ebx, eax
xor eax, eax
mov dword [ebp - method.el::base::Writer.virtual_0], vtable.el::base::Writer.0
mov dword [ebp - 0x6b0], 0x80
mov dword [ebp - 0x6ac], str.UnInstallMgr.cpp
mov dword [ebp - 0x6a8], 0x37
mov dword [ebp - 0x6a4], str.void___thiscall_CUnInstallMgr::RemoveShortCutByName_const_wchar_t__const_wchar_t__
mov word [ebp - 0x6a0], ax
mov dword [ebp - 0x69c], eax
mov byte [ebp - 0x698], al
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x690], 0x4808d2
mov dword [ebp - 0x68c], 2
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], eax
push str.default
lea eax, [ebp - 0x6b4]
mov byte [ebp - 4], 2
push 1
push eax
call fcn.0041eaa0
mov esi, eax
add esp, 0xc
cmp byte [esi + 0x1c], 0
je 0x40fda8
push str.RemoveShortCutByName
lea ecx, [esi + 0x20]
call fcn.00407ca0
cmp byte [esi + 0x1c], 0
je 0x40fda8
cmp dword [ebx + 0x14], 0x10
jb 0x40fd75
mov ebx, dword [ebx]
push ebx
lea ecx, [esi + 0x20]
call fcn.00407ca0
cmp byte [esi + 0x1c], 0
je 0x40fda8
push 0x480ee0
lea ecx, [esi + 0x20]
call fcn.00407ca0
cmp byte [esi + 0x1c], 0
je 0x40fda8
cmp dword [edi + 0x14], 0x10
jb 0x40fd9f
mov edi, dword [edi]
push edi
lea ecx, [esi + 0x20]
call fcn.00407ca0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6b4]
mov dword [ebp - method.el::base::Writer.virtual_0], vtable.el::base::Writer.0
call fcn.0041ef00
mov ecx, dword [ebp - 0x688]
test ecx, ecx
je 0x40fe24
push dword [ebp - 0x67c]
mov edx, dword [ebp - 0x684]
push ecx
call fcn.0040beb0
mov ecx, dword [ebp - 0x680]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x688]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040a210
mov dword [ebp - 0x688], 0
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x680], 0
mov eax, dword [ebp - 0x644]
cmp eax, 0x10
jb 0x40fe42
inc eax
lea ecx, [ebp - 0x658]
push eax
push dword [ebp - 0x658]
call fcn.00409f90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x644], 0xf
mov dword [ebp - 0x648], 0
mov byte [ebp - 0x658], 0
cmp eax, 0x10
jb 0x40fe82
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00409f90
cmp dword [ebp - 0x678], 0
je 0x41028e
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x628]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
or ebx, 0xffffffff
test eax, eax
je 0x41002e
lea edx, [ebp - 0x628]
lea ecx, [ebp - 0x640]
call fcn.00428aa0
mov esi, eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - method.el::base::Writer.virtual_0], vtable.el::base::Writer.0
mov dword [ebp - 0x6b0], 0x80
mov dword [ebp - 0x6ac], str.UnInstallMgr.cpp
mov dword [ebp - 0x6a8], 0x41
mov dword [ebp - 0x6a4], str.void___thiscall_CUnInstallMgr::RemoveShortCutByName_const_wchar_t__const_wchar_t__
mov word [ebp - 0x6a0], ax
mov dword [ebp - 0x69c], eax
mov byte [ebp - 0x698], al
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x690], 0x4808d2
mov dword [ebp - 0x68c], 2
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], eax
push str.default
lea eax, [ebp - 0x6b4]
mov byte [ebp - 4], 5
push 1
push eax
call fcn.0041eaa0
mov edi, eax
add esp, 0xc
cmp byte [edi + 0x1c], 0
je 0x40ff96
push str.remove_desktop_path:
lea ecx, [edi + 0x20]
call fcn.00407ca0
cmp byte [edi + 0x1c], 0
je 0x40ff96
cmp dword [esi + 0x14], 0x10
jb 0x40ff8d
mov esi, dword [esi]
push esi
lea ecx, [edi + 0x20]
call fcn.00407ca0
lea ecx, [ebp - 0x6b4]
call fcn.00407d40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
cmp eax, 0x10
jb 0x40ffc6
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00409f90
push 0x47ee1c
lea ecx, [ebp - 0x674]
call fcn.004047b0
push dword [ebp - 0x678]
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x674]
push str._s_s.lnk
push eax
call fcn.004052f0
add esp, 0x10
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x674]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41002e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41028e
push 0x480c88
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ecx
lea eax, [ebp - 0x218]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x420]
call fcn.0040f1e0
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x670]
call fcn.00428aa0
mov esi, eax
mov dword [ebp - 4], 7
xor eax, eax
mov dword [ebp - method.el::base::Writer.virtual_0], vtable.el::base::Writer.0
mov dword [ebp - 0x6e8], 0x80
mov dword [ebp - 0x6e4], str.UnInstallMgr.cpp
mov dword [ebp - 0x6e0], 0x53
mov dword [ebp - 0x6dc], str.void___thiscall_CUnInstallMgr::RemoveShortCutByName_const_wchar_t__const_wchar_t__
mov word [ebp - 0x6d8], ax
mov dword [ebp - 0x6d4], eax
mov byte [ebp - 0x6d0], al
mov dword [ebp - 0x6cc], eax
mov dword [ebp - 0x6c8], 0x4808d2
mov dword [ebp - 0x6c4], 2
mov dword [ebp - 0x6c0], eax
mov dword [ebp - 0x6bc], eax
mov dword [ebp - 0x6b8], eax
push str.default
lea eax, [ebp - 0x6ec]
mov byte [ebp - 4], 8
push 1
push eax
call fcn.0041eaa0
mov edi, eax
add esp, 0xc
cmp byte [edi + 0x1c], 0
je 0x410173
push str.Remove_start_menu_path:
lea ecx, [edi + 0x20]
call fcn.00407ca0
cmp byte [edi + 0x1c], 0
je 0x410173
cmp dword [esi + 0x14], 0x10
jb 0x41016a
mov esi, dword [esi]
push esi
lea ecx, [edi + 0x20]
call fcn.00407ca0
lea ecx, [ebp - 0x6ec]
call fcn.00407d40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x65c]
cmp eax, 0x10
jb 0x4101a3
inc eax
lea ecx, [ebp - 0x670]
push eax
push dword [ebp - 0x670]
call fcn.00409f90
mov dword [ebp - 0x65c], 0xf
mov dword [ebp - 0x660], 0
mov byte [ebp - 0x670], 0
call fcn.00405b30
mov ecx, eax
test ecx, ecx
jne 0x4101d3
push 0x80004005
call fcn.00401860
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x674], eax
push dword [ebp - 0x678]
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 9
push eax
lea eax, [ebp - 0x674]
push str._s_s.lnk
push eax
call fcn.004052f0
mov esi, dword [ebp - 0x674]
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x410223
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x67c]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x674]
push str._s_s.lnk
push eax
call fcn.004052f0
mov esi, dword [ebp - 0x674]
add esp, 0x10
push esi
call edi
test eax, eax
je 0x410258
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x410272
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41028e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0042fe16
mov esp, ebp
pop ebp
ret 8