Function at 0x51a490
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acb61
mov eax, dword fs:[0]
push eax
mov eax, 0x10b8
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
push str.CBaseSeqFinish::ExecFinishInstall
lea ecx, [ebp - 0x10c0]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x51a51a
test byte [ecx + 0x1c], 1
je 0x51a51a
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5de540
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10
call fcn.00401840
add esp, 0xc
push str.ExecFinishInstall
push str.Action_start__s.
push 0x6185b4
call fcn.0048a7e0
add esp, 0xc
call fcn.0049c810
cmp eax, 1
jne 0x51a566
lea ecx, [ebp - 0x10c4]
call fcn.00437ff0
push 0
lea ecx, [ebp - 0x10c4]
mov byte [ebp - 4], 1
call fcn.0043dc00
lea ecx, [ebp - 0x10c4]
mov byte [ebp - 4], 0
call fcn.004380c0
mov ecx, 0x618548
call fcn.00479c00
mov ecx, esi
call fcn.0051b640
cmp dword [0x618500], 0
je 0x51a5d2
mov ecx, esi
call fcn.0051b810
cmp dword [0x618500], 0
je 0x51a5d2
mov ecx, dword [0x6184f0]
push 0x5c79bc
push str.ISFINISH
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
cmp dword [0x618500], 0
je 0x51a5d2
call fcn.0049c150
test eax, eax
jne 0x51a5d2
mov ecx, dword [0x6184f0]
push 0x5c7d38
push str.RebootYesNo
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
cmp dword [0x618544], 0
je 0x51a77a
push ecx
push str.CBaseSeqFinish::SetUninstallerLocaleID
lea ecx, [ebp - 0x1088]
call fcn.0040a480
mov byte [ebp - 4], 2
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x51a634
test byte [ecx + 0x1c], 1
je 0x51a634
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5de540
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x26
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x850]
push 0
push eax
call fcn.00571c00
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1050]
add esp, 0x24
mov ecx, dword [ecx + 0x1c]
push eax
push str.UNINSTALLDEFAULTPATH
call fcn.004f65f0
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.UninstLocale.ini
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x850]
push 0x5c70f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x51a6d1
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x6184f0]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x51a764
cmp dword [0x618528], 0
jne 0x51a71b
push eax
lea eax, [ebp - 0x50]
push 0x5c8cf0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x50]
push eax
push str.CurrentLocaleID
push str.Locale
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 0x1084], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x51a764
test byte [ecx + 0x1c], 1
je 0x51a764
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5de540
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x27
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 0
call fcn.0040a570
mov ecx, esi
call fcn.0051ba50
cmp dword [0x618500], 0
je 0x51a78a
mov ecx, esi
call fcn.0051aec0
push 0
push str.ExecFinishInstall
push str.Action_ended__s._Return_value__08x.
push 0x6185b4
call fcn.0048a7e0
add esp, 0x10
mov byte [ebp - 0x10bc], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x51a7ec
test byte [ecx + 0x1c], 1
je 0x51a7ec
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5de540
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x10c0]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret