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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485106
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x499100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x487ab8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x228], eax
movq xmm0, qword [str.removed_files]
mov al, byte [0x487abc]
mov dword [ebp - 0x220], 0xd
mov dword [ebp - 0x21c], 0xf
movq qword [ebp - 0x230], xmm0
mov byte [ebp - 0x224], al
mov byte [ebp - 0x223], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
call fcn.00414880
mov ecx, dword [ebp - 0x21c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x405f51
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405f47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406184
push ecx
push edx
call fcn.0046a9b7
add esp, 8
mov ecx, esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00418520
cmp eax, 4
jne 0x406169
mov ecx, esi
call fcn.00414f50
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24c], eax
cmp edi, eax
je 0x406169
mov ecx, edi
call fcn.00418520
cmp eax, 3
jne 0x40615a
mov ecx, edi
call fcn.004184b0
cmp dword [eax + 0x14], 0x10
jb 0x405fb5
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40615a
lea eax, [ebp - 0x218]
push eax
call fcn.00407cb0
add esp, 4
test al, al
je 0x40615a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40601a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40615a
cmp eax, 3
je 0x40615a
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
mov word [ebp - 0x248], ax
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406070
sub eax, edx
lea ecx, [ebp - 0x248]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040ff90
mov esi, dword [0x49b654]
lea eax, [ebp - 0x248]
push eax
cmp esi, dword [0x49b658]
je 0x4060d0
mov ecx, esi
mov dword [ebp - 0x250], esi
call fcn.004037e0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
push eax
call fcn.004037e0
add dword [0x49b654], 0x30
jmp 0x4060db
push esi
mov ecx, 0x49b650
call fcn.00401e50
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x40611e
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406114
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406184
push ecx
push edx
call fcn.0046a9b7
add esp, 8
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x40615a
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406150
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406184
push ecx
push edx
call fcn.0046a9b7
add esp, 8
add edi, 8
cmp edi, dword [ebp - 0x24c]
jne 0x405f96
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ae1f
mov esp, ebp
pop ebp
ret
call fcn.0046e58f
int3