Function at 0x401b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5172a6
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 4
call fcn.00429000
add esp, 8
test al, al
je 0x401d29
sub esp, 8
lea ecx, [ebp - 0x28]
mov eax, esp
mov dword [eax], str.ScreenSaver
mov dword [eax + 4], 0xb
lea eax, [ebp - 0x58]
push eax
call fcn.00425800
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp ecx, eax
je 0x401ba7
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f60
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x401bc0
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406490
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401bf2
shr eax, 4
and al, 1
jne 0x401c04
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.004248d0
test al, al
je 0x401d29
push 0x10
push 0x542940
lea ecx, [ebp - 0x58]
call fcn.004166f0
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00495d50
push 0
push 0x2710
push edx
push eax
call fcn.004987f0
cmp dword [esi + 0x14], 0x10
jb 0x401c34
mov esi, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
lea eax, [ebp - 0x40]
push str._s._u._lld.log
push eax
call fcn.00429a10
add esp, 0x18
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x401c68
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004023a0
mov dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
sub esp, 8
mov byte [ebp - 0x58], 0
mov ecx, esp
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00425800
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x401cb7
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406490
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x44], 0
call fcn.0042a0f0
mov byte [0x56866c], 1
mov byte [0x568674], 1
mov byte [0x552e10], 1
mov byte [0x56866d], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x401d17
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004023a0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401d45
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406490
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret