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

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rax, qword [0x1400c6040]
mov rdx, rsp
and dword [rsp + 0x44], 0
mov qword [rsp + 0x58], rcx
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x70]
mov qword [0x1400c6040], rax
call sub.VCRUNTIME140.dll___intrinsic_setjmp
or r13, 0xffffffffffffffff
mov esi, 2
test eax, eax
jne 0x140060d8d
mov rcx, qword [rsp + 0x58]
mov rax, r13
inc rax
cmp byte [rcx + rax], 0
jne 0x140060d27
mov edx, 0x100
lea edi, [rdx + 1]
cmp eax, edi
cmovae eax, edx
lea rdx, [rbp + 0x170]
movsxd rbx, eax
mov r8, rbx
call fcn.1400a7e70
cmp rbx, rdi
jae 0x140061011
cmp dword [rbp + 0x2c8], 0
mov byte [rbp + rbx + 0x170], 0
jne 0x140060e72
call fcn.14005eda4
test eax, eax
jne 0x140060e10
lea r9d, [rax + 0x30]
xor r8d, r8d
xor edx, edx
mov ecx, 0x90016
call fcn.14000e620
mov rax, qword [0x1400c7ae0]
mov rbx, qword [rsp + 0x48]
cmp dword [rsp + 0x44], 0
je 0x140060dda
cmp dword [rbp + 0x2c8], 0
je 0x140060dc2
mov rcx, qword [rax + 0x82ad]
cmp rcx, r13
je 0x140060dc2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400c7ae0]
and dword [rax + 0x82f5], 0
mov qword [rax + 0x82ad], rbx
mov dword [rax + 0x82b5], 2
mov rax, qword [rsp + 0x50]
mov qword [0x1400c6040], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1400af450
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x390
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x1400c7ae0]
mov rcx, qword [rax + 0x82ad]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140060e3e
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140060e3e
test al, 0x10
je 0x140060e72
mov r9d, SQLSetConnectOption
xor r8d, r8d
xor edx, edx
mov ecx, 0x9001a
call fcn.14000e620
mov rax, qword [0x1400c7ae0]
mov edi, 1
mov byte [rax + 0xbd], dil
mov qword [rax + 0x82ad], r13
jmp 0x140060d94
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x170]
mov edi, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov edx, edi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
mov rbx, rax
cmp rax, r13
jne 0x140060ee4
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x170]
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, edi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
mov rbx, rax
cmp rax, r13
je 0x140060fc6
mov qword [0x1400c7910], rbx
lea rdx, [0x1400c7bc0]
mov rdi, r13
inc rdi
cmp byte [rdi + rdx], 0
jne 0x140060ef5
mov r8d, edi
mov rcx, rbx
call fcn.140072210
cmp eax, edi
jne 0x140060fc6
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x108
call sub.VCRUNTIME140.dll_memset
mov edi, 1
lea rcx, [rsp + 0x60]
mov edx, edi
mov dword [rbp - 0x44], edi
call fcn.1400a5aac
test eax, eax
jne 0x140060fc6
mov r9d, esi
mov word [rsp + 0x40], di
lea edx, [rdi + 0xd]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14005fa0c
mov rcx, qword [0x1400c7ae0]
mov rax, qword [rcx + 0x82e9]
test rax, rax
jne 0x140060f70
xor esi, esi
jmp 0x140060f83
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [0x1400c7ae0]
mov rsi, rax
mov rcx, qword [rcx]
call fcn.14006be94
mov rdx, rax
lea rcx, [rsp + 0x60]
mov r8, rsi
call fcn.140060404
mov r14d, eax
test rsi, rsi
je 0x140060fb7
mov rcx, qword [0x1400c7ae0]
mov rcx, qword [rcx + 0x82e9]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rsp + 0x60]
test r14d, r14d
jne 0x140060fe7
call fcn.1400a7004
mov r9d, SQLSetConnectOption
xor r8d, r8d
xor edx, edx
mov ecx, 0x90018
call fcn.14000e620
mov rax, qword [0x1400c7ae0]
jmp 0x140060d99
call fcn.140060120
lea rcx, [rsp + 0x60]
call fcn.1400a7004
test eax, eax
jne 0x140060fc6
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14005f988
test eax, eax
je 0x140060fc6
mov dword [rsp + 0x44], edi
jmp 0x140060fdb
call fcn.1400af588
int3