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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2878
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x639354]
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.00560a80
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00560a80
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
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.0047ca90
lea eax, [ebp - 0x420]
push eax
call fcn.00479dd0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056f8ec
push str._tempuninstall.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056f877
add esp, 0x28
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47562b
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.004b5fa0
push dword [eax]
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
push eax
call fcn.0052a320
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 0x4756b0
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 0x475718
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47570e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475b34
push edx
push ecx
call fcn.0055c524
add esp, 8
lea eax, [ebp - 0x644]
push eax
call fcn.004b6860
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 0x475759
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004b7620
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 0x47579a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004b5470
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
push 0x5bc304
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 0x4757db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.004b5b10
mov ebx, 0x5bbd7c
test eax, eax
mov edx, 0x5b9868
mov ecx, ebx
cmove ecx, edx
push ecx
push str.2019icdisable
push str.install
call esi
lea eax, [ebp - 0x644]
push eax
call fcn.004b52f0
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 0x475846
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x644]
push eax
call fcn.004b6ae0
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 0x475887
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x475b39
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 0x4758c8
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x4758d4
push 0x10
push str.DisableDelBackup
call fcn.0042a060
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004b5b90
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b9868
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 0x47592e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x475b43
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 0x47596f
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x47597b
push 0x16
push str.DisableDelCustomBackup
call fcn.0042a060
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004b5b90
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b9868
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 0x4759d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x475b4d
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 0x475a16
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x475a22
push 0xf
push str.DisableDelAddon
call fcn.0042a060
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004b5b90
add esp, 4
mov ecx, ebx
test eax, eax
mov eax, 0x5b9868
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 0x475a7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x475b57
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 0x475abd
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x475ac9
push 0x17
push str.DisableSilentDefaultDel
call fcn.0042a060
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004b5b90
add esp, 4
test eax, eax
mov eax, 0x5b9868
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 0x475b18
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3