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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x63434c]
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.0055c530
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0055c530
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055c530
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.0047ca40
lea eax, [ebp - 0x420]
push eax
call fcn.0047a130
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b39c
push str._tempuninstall.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b327
add esp, 0x28
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4759fb
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.004b5500
push dword [eax]
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
push eax
call fcn.00524960
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 0x475a80
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 0x475ae8
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475ade
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475f04
push edx
push ecx
call fcn.00558004
add esp, 8
lea eax, [ebp - 0x644]
push eax
call fcn.004b5dc0
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 0x475b29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004b6b80
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 0x475b6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004b49e0
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push 0x5b7370
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 0x475bab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.004b5080
mov ebx, 0x5b6e0c
test eax, eax
mov edx, 0x5b4868
mov ecx, ebx
cmove ecx, edx
push ecx
push str.2019icdisable
push str.install
call esi
lea eax, [ebp - 0x644]
push eax
call fcn.004b4860
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 0x475c16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004b6040
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 0x475c57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x475f09
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 0x475c98
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x475ca4
push 0x10
push str.DisableDelBackup
call fcn.0042a000
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004b5100
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b4868
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 0x475cfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x475f13
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 0x475d3f
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x475d4b
push 0x16
push str.DisableDelCustomBackup
call fcn.0042a000
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004b5100
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b4868
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 0x475da5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x475f1d
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 0x475de6
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x475df2
push 0xf
push str.DisableDelAddon
call fcn.0042a000
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004b5100
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b4868
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 0x475e4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x475f27
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 0x475e8d
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x475e99
push 0x17
push str.DisableSilentDefaultDel
call fcn.0042a000
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004b5100
add esp, 4
test eax, eax
mov eax, 0x5b4868
cmove ebx, eax
push ebx
push str.silentdefaultdeldisable
push str.install
call esi
mov edx, dword [ebp - 0x648]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x475ee8
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.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3