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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66cda8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 8]
call fcn.00410690
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], vtable.CStringEx.0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414f81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0040f740
mov byte [ebp - 4], 1
test eax, eax
je 0x414f9c
add eax, 4
jmp 0x414f9e
xor eax, eax
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404750
add eax, 0x10
mov dword [ebp - 0x24], vtable.CPathEx.0
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x28]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov dword [ebp - 0x2c], vtable.CStringEx.0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414fde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
call fcn.0040fed0
test al, al
je 0x415019
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ed80
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov dword [ebp - 0x1c], vtable.CStringEx.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415019
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
cmp dword [edi - 0xc], 0
jle 0x41505d
push 0x3b
push edi
call fcn.00617b7a
mov edi, dword [ebp - 0x20]
add esp, 8
test eax, eax
je 0x41505d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x41505d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415056
test al, 0x10
jne 0x415056
mov bl, 1
jmp 0x415121
xor bl, bl
jmp 0x415121
xor eax, eax
cmp dword [edi - 0xc], eax
cmove edi, eax
call fcn.00427fa4
mov ecx, eax
test ecx, ecx
jne 0x41507a
push 0x80004005
call fcn.00404730
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 8]
call fcn.0040f560
mov dword [ebp - 0x18], eax
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 5
jge 0x4150c6
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004049c0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push esi
push 0x104
push 0
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edx, dword [ebp - 0x30]
test eax, eax
mov byte [ebp - 4], 4
mov eax, ebx
setne byte [ebp - 0xd]
mov dword [ebp - 0x34], vtable.CStringEx.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415105
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41511e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp - 0xd]
lea ecx, [ebp - 0x24]
call fcn.004117a0
lea ecx, [ebp + 8]
call fcn.004117a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret