Function at 0x48f5d0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c01f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
mov ecx, dword [ebx + 8]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
push str.Update.bin._s
push eax
call fcn.004622a0
add esp, 0xc
lea edx, [ebx + 0x18]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0047c3d0
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov edi, dword [ebx + 0x98]
lea esi, [ebx + 0x98]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x48f688
cmp dword [edi + 0xc], 0
jl 0x48f67c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x48f67c
push eax
call fcn.00423fbb
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48f672
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x48f688
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00423f4a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48f6ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00423fbb
add esp, 4
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
mov dword [ebp - 0x18], ecx
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x48f6ed
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
cmp dword [ebp - 0x18], 0
je 0x48f717
mov edx, dword [esi]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
push str.CVirtAutoUpdate::DownloadNewVersion:_already_downloaded:__s
push ecx
call fcn.004622a0
add esp, 0xc
call fcn.0048c9e0
add esp, 4
jmp 0x48f950
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0048eee0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x48f768
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.004a5aac
push eax
call fcn.004a5a78
mov edx, dword [esi]
add esp, 4
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
push str.CVirtAutoUpdate::DownloadNewVersion:_starting:__s
push ecx
call fcn.004622a0
add esp, 0xc
call fcn.0048c9e0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00423fbb
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebx + 0x94]
mov eax, dword [ecx]
mov edx, dword [eax]
add esp, 4
call edx
push ecx
mov dword [ebp - 0x18], esp
test eax, eax
jne 0x48f7fb
mov ecx, dword [ebp - 0x10]
mov eax, esp
push ecx
push str.CVirtAutoUpdate::DownloadNewVersion:_RemoteFile__SetLocation_failed_for__s
push eax
call fcn.004622a0
add esp, 0xc
call fcn.0048c9e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48f748
mov ecx, esp
push str..download
push esi
push ecx
call fcn.0042367d
mov ebx, dword [ebx + 0x94]
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
add esp, 0xc
mov ecx, ebx
call eax
mov edi, eax
test edi, edi
jne 0x48f836
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
push str.CVirtAutoUpdate::DownloadNewVersion:_RemoteFile__DownloadToFile_failed__LE_d
push ecx
jmp 0x48f7cc
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov ebx, esp
push eax
call fcn.00423fbb
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00465920
push str..download
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.0042367d
mov ecx, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov eax, dword [ebp - 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48f896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48f90d
push str..download
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.0042367d
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, dword [edi]
mov edx, esp
mov dword [ebp - 0x18], esp
push eax
mov eax, dword [esi]
push eax
push ecx
push str.CVirtAutoUpdate::DownloadNewVersion:_cannot_Move__s_____s___LE_d
push edx
call fcn.004622a0
add esp, 0x14
call fcn.0048c9e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48f8fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x48f738
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
push str.CVirtAutoUpdate::DownloadNewVersion:_success___d_bytes_
push ecx
call fcn.004622a0
add esp, 0xc
call fcn.0048c9e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48f950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret