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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d0b1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a68a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov esi, 1
push 0x57e170
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0040ab30
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push ecx
mov dword [ebp - 0x14], esi
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.0040a450
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
push eax
call fcn.0040a450
add eax, 0x10
lea ecx, [ebp - 0x10]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 1
call fcn.00401310
add esp, 0xc
mov bl, 3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41a498
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a498
test al, 0x10
jne 0x41a498
lea edx, [ebp - 0x10]
push edx
jmp 0x41a5aa
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x580058
call fcn.0040ab30
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.0040a450
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 8]
add esp, 4
push eax
mov byte [ebp - 4], bl
call fcn.00401310
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040a4c0
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x41a521
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a521
test al, 0x10
je 0x41a5a6
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x580050
call fcn.0040ab30
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.0040a450
add eax, 0x10
lea edx, [ebp + 8]
add esp, 4
mov dword [esi], eax
push edx
mov byte [ebp - 4], bl
call fcn.00401310
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040a4c0
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a58d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x41a5b1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a5b1
test al, 0x10
jne 0x41a5b1
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.0040a4c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a5d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a5f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc