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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ddbd
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
jne 0x42f62b
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00405370
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0xa4], ebx
push 0x5c785c
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.00401d80
lea ecx, [ebp - 0xa4]
push ecx
push eax
lea edx, [ebp - 0xac]
push edx
mov byte [ebp - 4], 1
call fcn.00420d00
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00405100
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f5e2
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 - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f608
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f62b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
test byte [ebp - 0x9c], 1
je 0x42f6bb
push str._Read_Only
lea ecx, [ebp - 0xa0]
call fcn.00401d80
push eax
lea eax, [ebp - 0x9c]
push esi
mov ebx, 3
push eax
mov dword [ebp - 4], ebx
call fcn.00420d00
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x42f769
mov eax, dword [ebp - 0x78]
push 0xa
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.00560616
add esp, 0xc
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00420a50
push eax
lea edx, [ebp - 0xa4]
push esi
mov ebx, 5
push edx
mov dword [ebp - 4], ebx
call fcn.00420d00
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret