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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599cc3
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x62819c]
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.0054b380
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0054b380
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b380
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.00477420
lea eax, [ebp - 0x420]
push eax
call fcn.00474b10
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00559d1c
push str._tempuninstall.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00559ca7
add esp, 0x28
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47077b
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.004abb10
push dword [eax]
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
push eax
call fcn.00516490
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 0x470800
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 0x470868
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47085e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470c8b
push edx
push ecx
call fcn.00546044
add esp, 8
lea eax, [ebp - 0x644]
push eax
call fcn.004ac410
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 0x4708a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004ad400
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 0x4708ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004ab040
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push 0x5b0750
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 0x47092b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.004ab6c0
mov ebx, 0x5b01ec
test eax, eax
mov edx, 0x5ad78c
mov ecx, ebx
cmove ecx, edx
push ecx
push str.2019icdisable
push str.install
call esi
lea eax, [ebp - 0x644]
push eax
call fcn.004aaed0
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 0x470996
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004ac690
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 0x4709d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x470c90
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 0x470a18
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x470a24
push 0x10
push str.DisableDelBackup
call fcn.00429870
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004ab740
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5ad78c
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 0x470a7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x470c9a
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 0x470abf
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x470acb
push 0x16
push str.DisableDelCustomBackup
call fcn.00429870
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004ab740
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5ad78c
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 0x470b25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x470ca4
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 0x470b66
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x470b72
push 0xf
push str.DisableDelAddon
call fcn.00429870
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004ab740
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5ad78c
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 0x470bcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x470cae
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 0x470c0d
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x470c19
push 0x17
push str.DisableSilentDefaultDel
call fcn.00429870
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004ab740
add esp, 4
test eax, eax
mov eax, 0x5ad78c
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 0x470c6f
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.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3