Function at 0x4270a5
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x485931
call fcn.0048062c
lea esi, [ebp - 0x10]
call fcn.00420bd3
and dword [ebp - 4], 0
mov esi, 0x4b5088
mov edi, esi
call fcn.004024a3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, esi
call fcn.0040232d
lea eax, [ebp - 0x10]
push 0x499268
push eax
mov ecx, esi
call fcn.0040400d
pop ecx
pop ecx
mov edi, 0x4b508c
mov dword [ebp - 4], 1
call fcn.004024a3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x10]
push str.update_rebootconfig2.dat
push eax
mov ecx, esi
call fcn.0040400d
pop ecx
pop ecx
mov edi, 0x4b5090
mov dword [ebp - 4], 2
call fcn.004024a3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov ebx, str.update_reboot_update_
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0040400d
pop ecx
pop ecx
mov edi, 0x4b5094
mov dword [ebp - 4], 3
call fcn.004024a3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x10]
push str.update_reboot_update2
push eax
mov ecx, esi
call fcn.0040400d
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
test edi, edi
je 0x427219
lea eax, [ebp - 0x10]
push str.update_reboot_update2_
push eax
mov ecx, esi
call fcn.0040400d
mov dword [ebp - 4], 4
mov eax, dword [eax]
push 1
push eax
call fcn.004146d3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0040400d
mov dword [ebp - 4], 5
mov eax, dword [eax]
push 1
push eax
call fcn.004146d3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040214e
push dword [0x4b508c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
push dword [0x4b5090]
call edi
mov edi, dword [sym.imp.MSVCR80.dll__waccess]
push 0
push dword [0x4b508c]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4272a1
push 0
push dword [0x4b5090]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4272a1
lea eax, [ebp - 0x10]
push str.update_reboot_update2_
push eax
mov ecx, esi
call fcn.0040400d
mov dword [ebp - 4], 6
mov eax, dword [eax]
push 1
push eax
call fcn.004146d3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x14]
push ebx
push eax
mov ecx, esi
call fcn.0040400d
mov dword [ebp - 4], 7
mov eax, dword [eax]
push 1
push eax
call fcn.004146d3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040214e
push 0
push dword [0x4b508c]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x4272bb
mov dword [0x4b5098], 1
cmp dword [0x4b5098], 0
push 3
je 0x4272ce
push dword [0x4b508c]
jmp 0x4272d4
push dword [0x4b5090]
push 0x4b509c
call fcn.0040fba6
push dword [0x4b5098]
mov esi, 0x4b4d74
push str.KRebootConfigWritter::Init_m_bUseBackPath:_d
call fcn.00411a60
pop ecx
pop ecx
call fcn.00480704
ret