Function at 0x485220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5068c0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [esi + 0x71c]
test eax, eax
je 0x485280
push eax
call fcn.0041ae30
mov ecx, dword [esi + 0x71c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x71c], 0
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x4852b2
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4852b2
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test esi, esi
jne 0x4854b3
call fcn.00492130
cmp dword [eax], esi
je 0x4854b3
lea eax, [esp + 0x1c]
push eax
call fcn.004e5685
add esp, 4
cmp eax, 0xffffffff
jne 0x4852f0
cmp edx, eax
jne 0x4852f0
xor edi, edi
jmp 0x4852fa
mov edi, dword [esp + 0x1c]
add edi, 0xda67fa00
call fcn.00492130
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x48531a
cmp edi, eax
jb 0x48531a
add eax, 0x15180
cmp edi, eax
jb 0x4854b3
push 0
push str.360ZipUpdateTrayClass
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x4854b3
call fcn.00492130
lea esi, [esp + 0x10]
call fcn.00493ff0
push str.360zipUpdate.exe
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x94], 0
call fcn.00404510
add esp, 0xc
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4853c6
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4854b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4854b3
push 0x44
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004e8fe0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xc]
mov esi, 1
push eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], esi
call fcn.0041de00
add esp, 4
test eax, eax
jne 0x48546b
lea esi, [esp + 0x1c]
call fcn.00401140
mov esi, eax
lea ecx, [esp + 0x18]
push 0x17d
push ecx
mov byte [esp + 0x90], 4
call fcn.00433510
push esi
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x9c], 5
call fcn.0041d700
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
push edx
push 0x40
push 0
call fcn.00488bf0
add esp, 0x24
lea ecx, [esp + 0x14]
call fcn.004016f0
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x1c]
call fcn.004016f0
jmp 0x4854aa
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4854aa
push edi
call fcn.00492130
mov ecx, eax
call fcn.004057d0
call fcn.00492130
mov dword [eax + 0x104], esi
lea ecx, [esp + 0xc]
call fcn.004016f0
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4