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

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x278
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r15d, r15d
mov rsi, r8
test byte [rcx + 0x58], 0x40
mov rbx, rcx
mov ebp, r15d
mov qword [rsp + 0x40], r15
je 0x1400450e0
mov eax, 0xfffff019
jmp 0x140045436
lea rax, [0x140078310]
mov qword [rcx + 0xe8], rax
mov rcx, rsi
call fcn.14003b4b0
mov qword [rbx + 0x60], rax
test rax, rax
je 0x140045453
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0x2a8], rdi
mov qword [rsp + 0x270], r14
test al, 0x40
jne 0x14004512b
or eax, 0x40
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x14004512b
mov rax, qword [rbx + 8]
inc dword [rax + 8]
mov dword [rsp + 0x28], r15d
mov r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
movsxd r14, eax
mov rcx, r14
call qword [fcn.140061ddc]
mov rdi, rax
test rax, rax
je 0x140045465
shr r14, 1
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14004519e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140049560
jmp 0x140045426
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004536a
mov rcx, rdi
test al, 0x10
je 0x140045224
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
movsxd r14, eax
test eax, eax
je 0x14004520a
mov rcx, r14
add rcx, rcx
call qword [fcn.140061ddc]
mov rsi, rax
test rax, rax
je 0x140045477
mov r8d, r14d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1400451fd
cdqe
mov word [rsi + rax*2], r15w
jmp 0x14004520f
mov rcx, rsi
call fcn.14003b520
mov rsi, rdi
jmp 0x140045288
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x14004521f
mov rcx, rdi
call fcn.14003b520
mov rdi, rsi
mov rsi, rdi
jmp 0x140045288
mov r8d, 4
lea rdx, [rsp + 0x50]
lea rsi, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea r8, [rbx + 0xf0]
mov rcx, rdi
test eax, eax
lea rdx, [rsp + 0x40]
cmove rsi, r15
call fcn.140044f00
test eax, eax
jne 0x14004536a
lea r8, [rbx + 0xf8]
xor edx, edx
mov rcx, rsi
call fcn.140044f00
test eax, eax
jne 0x14004536a
mov rbp, qword [rsp + 0x40]
mov rcx, rdi
mov rsi, rbp
call fcn.14003b520
mov rdi, r15
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x42000000
mov rcx, rsi
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 rbp, rbp
je 0x1400452c5
mov rcx, rbp
call fcn.14003b520
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x14004536a
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 0x14004536a
mov rax, qword [rbx + 0x108]
test rax, rax
jne 0x140045316
mov ecx, 0x1000
call qword [fcn.140061ddc]
mov qword [rbx + 0x108], rax
test rax, rax
je 0x140045489
lea rax, [rbx + 0xa8]
mov qword [rsp + 0x38], r15
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
xor r9d, r9d
mov qword [rax + 8], rcx
mov r8d, 0x1000
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rdx, qword [rbx + 0x108]
mov rcx, qword [rbx + 0xd8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x17f
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
test eax, eax
jne 0x140045413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140045384
call fcn.14003b520
mov qword [rbx + 0x60], r15
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x14004539c
call fcn.14003b520
mov qword [rbx + 0xf0], r15
mov rcx, qword [rbx + 0xf8]
test rcx, rcx
je 0x1400453b4
call fcn.14003b520
mov qword [rbx + 0xf8], r15
mov rcx, rdi
call fcn.14003b520
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x1400453da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xd8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x1400453f2
call fcn.14003b520
mov qword [rbx + 0x108], r15
mov eax, dword [rbx + 0x58]
test al, 0x40
je 0x14004540a
and eax, 0xffffffbf
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x14004540a
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov ecx, esi
call fcn.140049560
jmp 0x140045426
mov qword [rbx + 0x100], rdi
xor eax, eax
mov dword [rbx + 0xe0], 1
mov rdi, qword [rsp + 0x2a8]
mov r14, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140059450
add rsp, 0x278
pop r15
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.1400494b0
int3
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.1400494b0
int3
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.1400494b0
int3
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.1400494b0
int3