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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r13d, r13d
mov r12d, r9d
test byte [rcx + 0x58], 4
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x70], r13
mov esi, r13d
mov r14d, r13d
je 0x1400adda8
mov eax, 0xfffff019
jmp 0x1400ae18a
mov qword [rcx + 0xe8], rdx
mov rcx, rdi
call fcn.1400a8ac0
mov qword [rbx + 0x60], rax
test rax, rax
je 0x1400ae19f
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], r15
test al, 4
jne 0x1400adde9
or eax, 4
mov dword [rbx + 0x58], eax
test al, 8
je 0x1400adde9
mov rax, qword [rbx + 8]
inc dword [rax + 8]
mov dword [rsp + 0x28], r13d
or r9d, 0xffffffff
mov r8, rdi
mov qword [rsp + 0x20], r13
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
add eax, eax
movsxd r15, eax
mov rcx, r15
call fcn.1400a8930
mov rbp, rax
test rax, rax
je 0x1400ae1b1
shr r15, 1
or r9d, 0xffffffff
mov dword [rsp + 0x28], r15d
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x1400ade57
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400b6650
jmp 0x1400ae17d
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ae0b9
xor r8d, r8d
xor edx, edx
mov rcx, rbp
test al, 0x10
je 0x1400aded3
call qword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
movsxd r15, eax
test eax, eax
je 0x1400adecb
mov rcx, r15
add rcx, rcx
call fcn.1400a8930
mov rdi, rax
test rax, rax
je 0x1400ae1c3
mov r8d, r15d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
test eax, eax
je 0x1400adec3
cdqe
mov rcx, rbp
mov word [rdi + rax*2], r13w
call fcn.1400a8720
mov rbp, rdi
jmp 0x1400adfd3
mov rcx, rdi
call fcn.1400a8720
mov rdi, rbp
jmp 0x1400adfd3
call qword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
mov edi, eax
test eax, eax
je 0x1400adf0f
mov ecx, edi
add rcx, rcx
call fcn.1400a8930
mov r14, rax
test rax, rax
je 0x1400adf0f
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
test eax, eax
jne 0x1400adf0f
mov rcx, r14
call fcn.1400a8720
mov r14, r13
lea r8, [rbx + 0xf0]
mov rcx, rbp
lea rdx, [rsp + 0x70]
call fcn.1400ae680
test eax, eax
jne 0x1400ae0b9
test r14, r14
jne 0x1400adf3c
mov qword [rbx + 0xf8], r13
jmp 0x1400adfc0
or rsi, 0xffffffffffffffff
inc rsi
cmp word [r14 + rsi*2], r13w
jne 0x1400adf40
mov rdi, rsi
nop dword [rax]
test rdi, rdi
je 0x1400adf6f
movzx eax, word [r14 + rdi*2 - 2]
dec rdi
cmp ax, 0x5c
je 0x1400adf6a
cmp ax, 0x2f
jne 0x1400adf50
test rdi, rdi
jne 0x1400adf80
mov rcx, r14
call fcn.14010a0a0
mov qword [rbx + 0xf8], rax
jmp 0x1400adfc0
sub rsi, rdi
lea r15, [rsi + rsi]
mov rcx, r15
call fcn.1400a8930
mov qword [rbx + 0xf8], rax
test rax, rax
je 0x1400ae1d5
lea rdx, [rdi + 1]
mov rcx, rax
lea rdx, [r14 + rdx*2]
lea r8, [rsi - 1]
call fcn.140101744
mov rax, qword [rbx + 0xf8]
mov word [r15 + rax - 2], r13w
mov rsi, qword [rsp + 0x70]
mov rcx, rbp
mov rdi, rsi
call fcn.1400a8720
mov rbp, r13
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x42000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [rbx + 0xd8], rax
test rsi, rsi
je 0x1400ae010
mov rcx, rsi
call fcn.1400a8720
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x1400ae0b9
mov rdx, qword [rbx + 8]
xor r9d, r9d
mov r8, rbx
mov rdx, qword [rdx + 0x38]
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
je 0x1400ae0b9
cmp qword [rbx + 0x108], r13
jne 0x1400ae05d
mov ecx, 0x1000
call fcn.1400a8930
mov qword [rbx + 0x108], rax
cmp rax, r13
je 0x1400ae1e7
lea rax, [rbx + 0xa8]
mov qword [rsp + 0x38], r13
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
mov r8d, 0x1000
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rdx, qword [rbx + 0x108]
mov rcx, qword [rbx + 0xd8]
shr r12d, 2
and r12d, 1
mov qword [rsp + 0x28], r13
mov r9d, r12d
mov dword [rsp + 0x20], 0x17f
call qword [sym.imp.KERNEL32.DLL_ReadDirectoryChangesW]
test eax, eax
jne 0x1400ae16a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400ae0d3
call fcn.1400a8720
mov qword [rbx + 0x60], r13
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x1400ae0eb
call fcn.1400a8720
mov qword [rbx + 0xf0], r13
mov rcx, qword [rbx + 0xf8]
test rcx, rcx
je 0x1400ae103
call fcn.1400a8720
mov qword [rbx + 0xf8], r13
mov rcx, rbp
call fcn.1400a8720
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x1400ae129
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0xd8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x1400ae141
call fcn.1400a8720
mov qword [rbx + 0x108], r13
mov eax, dword [rbx + 0x58]
test al, 4
je 0x1400ae159
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1400ae159
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov rcx, r14
call fcn.1400a8720
mov ecx, edi
call fcn.1400b6650
jmp 0x1400ae17d
mov qword [rbx + 0x100], rbp
xor eax, eax
mov dword [rbx + 0xe0], 1
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b65a0
int3