Function at 0x454920
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45cc2a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x34]
push 0
push 0x46b87c
call fcn.00401f90
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x454971
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4549a3
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2c], 1
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4549d2
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x46b880
push 0x46b89c
lea ecx, [esp + 0x20]
push str._s_s
push ecx
mov byte [esp + 0x3c], 2
call fcn.00401e30
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x46b8b8
mov edi, 0x46b8c0
mov esi, ebp
call fcn.004074d0
lea eax, [esp + 0x28]
add esp, 0x14
push eax
mov ebx, 0x46b8dc
mov edi, 0x46b8e8
call fcn.004074d0
mov edi, dword [esp + 0x20]
add esp, 4
cmp dword [edi - 0xc], 0
je 0x454b5d
mov ecx, dword [esp + 0x14]
push edi
push ecx
call fcn.00432a46
add esp, 8
test eax, eax
je 0x454b5d
lea edx, [esp + 0x20]
push edx
call fcn.004543f0
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x30], 3
call fcn.00401940
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454a96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
mov eax, 0x46b904
call fcn.00405bd0
add esp, 4
push edi
push 0x46b924
mov esi, 0x46b930
mov ebx, ebp
call fcn.00406c50
add esp, 8
push 0x46b94c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454adc
test al, 1
je 0x454adc
and eax, 0xfffffffe
push eax
push 0x46b94c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.autoupdate.fls
mov eax, ebp
call fcn.00405c50
add ebp, 0xfffffff0
add esp, 4
mov byte [esp + 0x2c], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454b0d
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0xfffffff0
mov byte [esp + 0x2c], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454b2e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454b56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x454bca
add ebp, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454b7f
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0xfffffff0
mov byte [esp + 0x2c], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x454ba0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4