Function at 0x571220
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc431
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.Optimizing_the_Windows_boot_and_shutdown_time...
push 0xffffffffffffffff
call fcn.0057b610
push 0
push 1
mov ecx, esi
call fcn.005494d0
push 0
mov ecx, esi
call fcn.00571540
mov ecx, dword [esi + 0x3c]
mov edi, eax
mov dword [ebp - 0x6c], edi
call fcn.00598410
test al, al
jne 0x5714dd
mov ecx, esi
call fcn.005716e0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.defrag.exe
push dword [esi + 0x44]
call fcn.005dc520
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005dc190
xor edx, edx
mov ecx, eax
call fcn.005cc7d0
test eax, eax
je 0x57130c
mov ecx, eax
call fcn.005cc410
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Prefetch
push dword [esi + 0x40]
lea ecx, [ebp - 0x20]
call fcn.005dc200
lea ecx, [ebp - 0x20]
call fcn.005dc190
or edx, 0xffffffff
mov ecx, eax
call fcn.005e0f30
push 0
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
mov ecx, esi
call fcn.0055e500
push ecx
push 0x20
push str.DEFRAGSVC
mov ecx, esi
call fcn.00553620
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Layout.ini
lea ecx, [ebp - 0x20]
call fcn.005da780
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5713c3
push 0x30
push 0
push 0x6311c4
push str.OptimalLayoutFile
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2c]
call fcn.005db1d0
mov ecx, eax
call fcn.005dbeb0
test al, al
je 0x571425
push 2
lea ecx, [ebp - 0x20]
call fcn.005dc190
ret
lodsd eax, dword [esi]
push es
add byte [eax - 0x18], dl
or eax, 0xf00005e
push edi
ror byte [ebp + 0x6ae04d], 0x6a
sub cl, byte [edi]
adc dword [ebp - 0x4c], eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x4c]
call fcn.005e4770
push 0
push str._OptimalLayoutFile__r_nVersion1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.005e37e0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.005d9280
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x571425
test eax, eax
je 0x571425
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x63c140
push dword [esi + 0x3c]
push str.__c_Defrag.exe
push ecx
mov ecx, esi
call fcn.0057bcc0
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc200
push 0
push dword [esi + 0x44]
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
mov ecx, esi
call fcn.00579420
mov edi, eax
test edi, edi
jne 0x571475
xor esi, esi
jmp 0x57152a
push 1
lea ecx, [ebp - 0x68]
call fcn.005d0610
mov ecx, edi
call fcn.005cc910
test al, al
je 0x5714c3
nop word [eax + eax]
xorps xmm1, xmm1
lea ecx, [ebp - 0x68]
call fcn.005d05a0
movsd xmm1, qword [0x6edc00]
comisd xmm1, xmm0
jbe 0x5714c3
push 0
push 0
mov ecx, esi
call fcn.005494d0
test eax, eax
jne 0x571527
mov ecx, edi
call fcn.005cc910
test al, al
jne 0x571490
lea ecx, [ebp - 0x20]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.005dc430
mov edi, dword [ebp - 0x6c]
cmp byte [ebx + 8], 0
je 0x571500
push 0
push 0
test edi, edi
mov ecx, str.Failed_to_optimize_the_systems_boot_and_shutdown_time.
mov eax, str.Successfully_optimized_the_systems_boot_and_shutdown_time.
cmove eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0057b7e0
xor eax, eax
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
or esi, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
call fcn.005dc430
mov eax, esi
jmp 0x571507