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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a553
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x61ce74]
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
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00540d70
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00540d70
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00540d70
add esp, 0x24
lea eax, [ebp - 0x420]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x1a
call fcn.00472c70
lea eax, [ebp - 0x420]
push eax
call fcn.004703a0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00554202
push str._tempuninstall.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0055418d
add esp, 0x28
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c61b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push str.localappdata
push str.install
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
push str.appdatapath
push str.install
call esi
lea eax, [ebp - 0x644]
push eax
call fcn.004a0900
push dword [eax]
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
push eax
call fcn.004e3f80
mov edx, dword [ebp - 0x644]
or edi, 0xffffffff
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c6a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
push str.newcurinstallpath
push str.install
call esi
mov edx, dword [ebp - 0x62c]
cmp edx, 8
jb 0x46c708
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c6fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cb2b
push edx
push ecx
call fcn.0053d0af
add esp, 8
lea eax, [ebp - 0x644]
push eax
call fcn.004a1200
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push str.startmenudir
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c749
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004a1d50
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push str.waitclearlist
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c78a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004a0070
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push 0x5b441c
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c7cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.004a06f0
mov ebx, 0x5b3ec4
test eax, eax
mov edx, 0x5b151c
mov ecx, ebx
cmove ecx, edx
push ecx
push str.2019icdisable
push str.install
call esi
lea eax, [ebp - 0x644]
push eax
call fcn.0049ff00
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push str.AutoRecoverFilePath
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c836
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004a1480
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push str.OldAutoRecoverFilePath
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c877
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x46cb30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
mov eax, str.DisableDelBackup
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x644]
test eax, 0xffff0000
jne 0x46c8b8
movzx eax, ax
push eax
call fcn.00426130
jmp 0x46c8c4
push 0x10
push str.DisableDelBackup
call fcn.004263f0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004a0770
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b151c
cmove ecx, eax
push ecx
push str.delbackupdisable
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c91e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x46cb3a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
mov eax, str.DisableDelCustomBackup
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x644]
test eax, 0xffff0000
jne 0x46c95f
movzx eax, ax
push eax
call fcn.00426130
jmp 0x46c96b
push 0x16
push str.DisableDelCustomBackup
call fcn.004263f0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004a0770
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b151c
cmove ecx, eax
push ecx
push str.delcustombackupdisable
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c9c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x46cb44
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
mov eax, str.DisableDelAddon
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x644]
test eax, 0xffff0000
jne 0x46ca06
movzx eax, ax
push eax
call fcn.00426130
jmp 0x46ca12
push 0xf
push str.DisableDelAddon
call fcn.004263f0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004a0770
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b151c
cmove ecx, eax
push ecx
push str.deladdondisable
push str.install
call esi
mov edx, dword [ebp - 0x644]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ca6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x46cb4e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x648], eax
mov eax, str.DisableSilentDefaultDel
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x648]
test eax, 0xffff0000
jne 0x46caad
movzx eax, ax
push eax
call fcn.00426130
jmp 0x46cab9
push 0x17
push str.DisableSilentDefaultDel
call fcn.004263f0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004a0770
add esp, 4
test eax, eax
mov eax, 0x5b151c
cmove ebx, eax
push ebx
push str.silentdefaultdeldisable
push str.install
call esi
mov edx, dword [ebp - 0x648]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46cb0f
mov ecx, dword [edx]
push edx
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.0053d079
mov esp, ebp
pop ebp
ret
call fcn.0054b0c3
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
int3