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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a593b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x60f520]
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
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [0x6434b4]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x4ff9db
push 0x2c
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4ff9cd
mov ecx, eax
call fcn.004947d0
jmp 0x4ff9cf
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6434b4], eax
push ebx
push str.CheckInstall__s_
push str.Update
push eax
call fcn.00494d30
add esp, 0x10
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
mov ecx, esi
movq qword [ebp - 0x18], xmm0
push eax
call fcn.004ff010
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4ffa58
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ffaad
push dword [edi + 0x10]
push dword [esi + 0x38]
push str.from_sresultdpfnv_s
push 0x5b6ff0
push 0x5b6ff8
push dword [ebp + 0xc]
push eax
call fcn.004fab90
add esp, 0x1c
push str.Update_Package_File_Not_Exist_
push str.Update
call fcn.00494cb0
push eax
call fcn.00494d30
add esp, 0xc
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4ffa8d
or ebx, 0xffffffff
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4ffa8d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea edx, [edi + 8]
lock xadd dword [edx], ebx
dec ebx
jne 0x4ffa8d
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, esi
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.0055199a
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.0040c2d0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.005228c0
lea edx, [edi + 0x18]
mov ecx, eax
call fcn.00411e50
mov byte [ebp - 0x19], al
or edx, 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ffaf6
mov ecx, dword [eax]
push dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ffb17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x19], 0
je 0x4ffb4a
mov eax, dword [edi + 0x24]
sub eax, 0
je 0x4ffb39
dec eax
jne 0x4ffb87
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00500390
mov edi, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ffb87
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00500200
mov edi, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ffb87
push dword [edi + 0x10]
mov eax, dword [ebp - 0x24]
push dword [eax + 0x38]
push str.from_sresultvpfnv_s
push 0x5b6ff0
push 0x5b6ff8
push dword [ebp + 0xc]
push 0
call fcn.004fab90
add esp, 0x1c
push str.Check_Update_Package_File_MD5_Failed_
push str.Update
call fcn.00494cb0
push eax
call fcn.00494d30
add esp, 0xc
push esi
push str.UpdatePackage_Result_is__d
push str.Update
call fcn.00494cb0
push eax
call fcn.00494d30
add esp, 0x10
test esi, esi
je 0x4ffbef
push ecx
call fcn.005007a0
mov edx, dword [edi + 0x10]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ffbb5
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push str.InstVersion
mov edx, str.SoftwareAppleDesktop
call fcn.00516d70
add esp, 0x14
mov eax, str.exe_succ
mov ecx, str.zip_succ
jmp 0x4ffbf9
mov eax, 0x5cd498
mov ecx, 0x5cd490
push dword [edi + 0x10]
cmp dword [edi + 0x24], 0
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
push str.from_sresult_snv_s
push 0x5b6ff0
push 0x5b6ff8
push eax
push 0
call fcn.004fab90
add esp, 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ffa5a