Function at 0x14003e2d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
mov rbx, rcx
test r8, r8
je 0x14003e42c
js 0x14003e5cc
mov rsi, r8
mov r14, rdx
mov r13, qword [str.1p__]
movzx eax, byte [r13]
mov edx, 1
mov rcx, r8
call sym.__rust_alloc
test rax, rax
je 0x14003e5d1
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sym.memcpy
movzx eax, byte [r13]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14003e5de
mov r15, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call sym.memcpy
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x70], 0
lea rdx, [0x1401eaf50]
lea rcx, [rsp + 0x58]
mov r8d, 1
call dbg._push
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x28]
mov rdx, r15
call sym.std::sys::pal::windows::to_u16s::inner::h4c9a51427fa9952c
movabs rbp, 0x8000000000000000
mov rax, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
cmp rax, rbp
je 0x14003e3f9
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov r8b, 1
call dbg.get_long_path
mov qword [rsp + 0x20], r14
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
cmp r14, rbp
jne 0x14003e457
mov r14, qword [rsp + 0x20]
mov qword [rbx], r12
mov dword [rbx + 0x10], 2
test r14, r14
je 0x14003e419
mov r8d, 1
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
jmp 0x14003e440
movabs rax, 0x300000002
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
mov rax, rbx
add rsp, 0x2a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbp, [rsp + 0x58]
mov r8d, 0x250
mov rcx, rbp
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r12
mov rdx, rbp
call sub.kernel32.dll_FindFirstFileW
cmp rax, 0xffffffffffffffff
je 0x14003e51f
mov rbp, rax
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14003e5ed
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
mov qword [rbx], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], 1
mov rcx, rbx
add rcx, 0x14
lea rdx, [rsp + 0x58]
mov r8d, 0x250
call sym.memcpy
test r14, r14
je 0x14003e4fe
add r14, r14
mov r8d, 2
mov rcx, r12
mov rdx, r14
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14003e440
mov r8d, 1
mov rcx, r15
call sym.__rust_dealloc
jmp 0x14003e440
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x14003e585
movzx eax, byte [r13]
mov ecx, 0x30
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14003e5fe
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov byte [rax + 0x28], 0
mov qword [rbx], rax
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], 0
test r14, r14
jne 0x14003e4ea
jmp 0x14003e4fe
shl rax, 0x20
or rax, 2
mov qword [rbx], rax
mov dword [rbx + 0x10], 2
test r14, r14
je 0x14003e5b0
add r14, r14
mov r8d, 2
mov rcx, r12
mov rdx, r14
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14003e419
mov r8d, 1
mov rcx, r15
jmp 0x14003e414
call dbg.capacity_overflow
mov ecx, 1
mov rdx, rsi
call dbg.handle_alloc_error
mov ecx, 1
mov rdx, rsi
call dbg.handle_alloc_error
jmp 0x14003e60d
mov ecx, 8
mov edx, 0x30
call dbg.handle_alloc_error
jmp 0x14003e60d
mov ecx, 8
mov edx, 0x30
call dbg.handle_alloc_error
ud2