Function at 0x40fd10
Capabilities:
Delete directory
Delete file
Get common file path
Get program files directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470513
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x496534]
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, ecx
cmp dword [edi + 0x5c0], 0
je 0x40fd50
xor ecx, ecx
call fcn.004081d0
mov eax, dword [edi + 0x108]
lea esi, [edi + 0x108]
mov ecx, 0x486438
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fd87
test dx, dx
je 0x40fd83
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fd87
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fd61
xor eax, eax
jmp 0x40fd8c
sbb eax, eax
or eax, 1
test eax, eax
setne al
or ebx, 0xffffffff
test al, al
je 0x40fe43
push 0x486438
lea ecx, [ebp - 0x220]
call fcn.00401ff0
push 0x4857e0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00403c70
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00402a50
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fdf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xc
push str.UNINSTAL.ini
lea ecx, [ebp - 0x220]
call fcn.00401780
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fe43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00408af0
push dword [edi + 0xcc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [edi + 0xec], 0
je 0x40fed0
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40fe72
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
push 0x39
mov dword [ebp - 4], 2
call fcn.004335e9
test eax, eax
je 0x40fea6
push 0x39
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401a50
mov esi, dword [ebp - 0x21c]
mov ecx, dword [edi + 0xec]
push esi
call fcn.00403b60
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40fed0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi + 0x3b0]
test esi, esi
je 0x40fefd
call fcn.004350f7
mov dword [eax + 0xc], esi
mov eax, dword [edi + 0x3b4]
test eax, eax
je 0x40fefd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x3b4], 0
cmp dword [edi + 0x174], 1
jne 0x40ff1c
push 0x20
lea esi, [edi + 0x178]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0xdc]
sub eax, 0x10
push eax
call fcn.004029e0
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push 0x5c
push esi
mov dword [ebp - 4], 3
call fcn.0044e876
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x5c
push esi
call fcn.0044e876
add esp, 8
test eax, eax
jne 0x40ff61
or eax, 0xffffffff
jmp 0x40ff65
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00408d40
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00402a50
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ffa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044f210
mov eax, dword fs:[0x2c]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x49ca60]
cmp eax, dword [ecx + 4]
jle 0x41001d
push 0x49ca60
call fcn.0044b33a
add esp, 4
cmp dword [0x49ca60], 0xffffffff
jne 0x41001d
mov byte [ebp - 4], 5
call fcn.004197d0
push 0x473f90
call fcn.0044b6ae
push 0x49ca60
mov byte [ebp - 4], 3
call fcn.0044b2fb
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x41006a
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41006a
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Canon_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov eax, dword [edi + 0x384]
test eax, eax
je 0x4100b0
push 0
push dword [edi + 0xf0]
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, edi
call fcn.0043ed64
mov ebx, eax
test ebx, ebx
jne 0x4100c3
mov ebx, dword [edi + 0xf0]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4100e2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0044ae75
mov esp, ebp
pop ebp
ret