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

Disassembly:
push 0x64
mov eax, 0x65d00bc
call fcn.065b9f4b
mov esi, ecx
mov eax, dword [esi + 0x28]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x65a8a85
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65a8a7d
test byte [eax + 0x1c], 2
je 0x65a8a7d
cmp byte [eax + 0x19], 5
jb 0x65a8a7d
push 0x65d4424
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
mov al, 1
call fcn.065b9fa7
ret
lea ecx, [ebp - 0x68]
call fcn.0658de1b
push dword [esi + 4]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x65a8af0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebx
push ebx
push eax
call edi
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x65a8b05
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65a8af0
test byte [eax + 0x1c], 1
je 0x65a8af0
cmp byte [eax + 0x19], 2
jb 0x65a8af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x65d4424
push 0x10
mov eax, dword [0x65e4c3c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.065af7a9
add esp, 0x14
lea ecx, [ebp - 0x68]
call fcn.0658ddc3
mov bl, al
neg bl
sbb bl, bl
inc bl
jmp 0x65a8c1c
lea ebx, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.0658e066
push dword [ebp - 0x38]
mov ecx, dword [esi + 4]
push eax
push ecx
call edi
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.0659023e
test edi, edi
jne 0x65a8b51
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65a8af0
test byte [eax + 0x1c], 1
je 0x65a8af0
cmp byte [eax + 0x19], 2
jb 0x65a8af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x65d4424
push 0x11
jmp 0x65a8add
push 0x65e5eb8
lea ecx, [ebp - 0x3c]
call fcn.0658db8f
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
lea ecx, [esi + 0x30]
push edi
mov byte [ebp - 4], 2
call fcn.0658e066
lea ecx, [esi + 0x2c]
push edi
mov dword [ebp - 0x38], eax
call fcn.0658e066
lea ecx, [esi + 0x24]
push edi
mov dword [ebp - 0x44], eax
call fcn.0658e066
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
call fcn.0658e066
mov ebx, dword [ebx]
push edi
push dword [ebp - 0x38]
push edi
push dword [ebp - 0x44]
push edi
push dword [ebp - 0x40]
push edi
push eax
push ebx
call fcn.065bae81
add esp, 0x24
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
call fcn.0659023e
push ebx
lea ecx, [esi + 0x24]
call fcn.0659023e
push ebx
lea ecx, [esi + 0x2c]
call fcn.0659023e
push ebx
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0659023e
cmp dword [ebp - 0x38], 0
je 0x65a8c2b
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65a8c0f
test byte [eax + 0x1c], 1
je 0x65a8c0f
cmp byte [eax + 0x19], 2
jb 0x65a8c0f
push dword [ebp - 0x38]
push 0x65d4424
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.065af7a9
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.065711e0
xor bl, bl
lea ecx, [ebp - 0x68]
call fcn.0658ddd9
mov al, bl
jmp 0x65a8a7f
push dword [esi + 0x24]
mov edi, str._s_s
push dword [ebp - 0x3c]
lea eax, [esi + 0x28]
push edi
push eax
call fcn.0658e1e0
mov eax, dword [ebx]
mov ecx, dword [esi + 0x2c]
add esp, 0x10
push eax
push ecx
push edi
add esi, 0x34
push esi
call fcn.0658e1e0
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.065711e0
jmp 0x65a8af0