Function at 0x1400d7b40
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401d92a0
sub rsp, rax
mov r12, qword [0x14022c040]
mov qword [rsp + 0x20a0], r8
mov esi, edx
mov rbx, rcx
mov edi, r8d
mov qword [rsp + 0x20a8], r9
lea rax, [rsp + 0x20a0]
mov qword [rsp + 0x20], rax
mov rbp, qword [r12]
mov qword [rsp + 0x2038], rbp
mov ebp, edx
xor edx, edx
and ebp, 0x500
cmp ebp, 0x500
setne dl
call fcn.1400d3780
test eax, eax
je 0x1400d800f
mov eax, dword [0x1401e48a0]
test eax, eax
js 0x1400d7cd0
test eax, eax
jne 0x1400d7cea
mov r13, qword [sym.imp.msvcrt.dll__wopen]
test rbx, rbx
je 0x1400d7bf1
mov r13, qword [sym.imp.msvcrt.dll__wopen]
lea rdx, [0x140205cbe]
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400d7d68
call fcn.1400d1230
lea rbp, [rsp + 0x30]
mov r9d, 0xffffffff
mov rdx, rbx
mov r8d, 0x1000
mov rcx, rbp
mov r14d, eax
call fcn.1400d25c0
test eax, eax
js 0x1400d7cb0
mov r9d, r14d
mov r8d, 0x104
mov edx, eax
mov rcx, rbp
call fcn.1400d3b90
test eax, eax
js 0x1400d7cc2
mov r8d, edi
mov edx, esi
mov rcx, rbp
call r13
mov r14d, eax
test esi, 0x100
je 0x1400d7d18
test eax, eax
jns 0x1400d7d88
test sil, 3
jne 0x1400d7e70
mov eax, dword [0x1401e4954]
mov qword [rsp + 0x28], rbx
test eax, eax
jne 0x1400d7dc0
nop word [rax + rax]
mov rax, qword [rsp + 0x2038]
sub rax, qword [r12]
jne 0x1400d802f
mov eax, r14d
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400d7fc0
mov r14d, 0xffffffff
jmp 0x1400d7c80
mov rax, qword [0x14022c970]
mov rax, qword [rax]
test rax, rax
je 0x1400d7cea
cmp qword [rax + 8], 0
jne 0x1400d7e48
test sil, 8
je 0x1400d7bc7
movsx eax, byte [rbx]
cmp eax, 0x2f
je 0x1400d7f38
cmp eax, 0x5c
je 0x1400d7f38
lea r13, [0x1400d1160]
jmp 0x1400d7bda
test eax, eax
jns 0x1400d7c80
and esi, 3
je 0x1400d7c80
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0xd
jne 0x1400d7c80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d7c80
test al, 0x10
je 0x1400d7c80
call rbx
mov dword [rax], 0x15
jmp 0x1400d7c80
lea rbp, [rsp + 0x30]
lea rdx, [0x140205d68]
mov rcx, rbp
call sub.msvcrt.dll_wcscpy
jmp 0x1400d7c38
call fcn.1400dd320
test eax, eax
je 0x1400d7c64
mov ecx, r14d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov edx, edi
and edx, 0x1ff
mov rcx, rax
or dh, 0x80
call fcn.1400dd4b0
jmp 0x1400d7c64
lea rcx, [rsp + 0x28]
call fcn.1400db0f0
mov rax, qword [rsp + 0x28]
movzx edx, byte [rax]
test dl, dl
je 0x1400d7c80
mov r15, rax
jmp 0x1400d7dfd
mov rcx, rax
cmp dl, 0x5c
je 0x1400d7e20
add rax, 1
mov qword [rsp + 0x28], rax
movzx edx, byte [rcx + 1]
test dl, dl
je 0x1400d7eb0
cmp dl, 0x2f
jne 0x1400d7de0
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop dword [rax + rax]
add rax, 1
mov qword [rsp + 0x28], rax
movsx ecx, byte [rax]
cmp cl, 0x2f
je 0x1400d7e20
cmp ecx, 0x5c
je 0x1400d7e20
test cl, cl
je 0x1400d7eb0
mov r15, rax
mov rcx, rax
jmp 0x1400d7de8
lea rdx, [0x1401e48a0]
lea rcx, str.windows.appendatomically
call fcn.140011e90
test eax, eax
jne 0x1400d7fb0
mov eax, dword [0x1401e48a0]
jmp 0x1400d7bbf
mov r15, qword [sym.imp.msvcrt.dll__errno]
call r15
cmp dword [rax], 0xd
jne 0x1400d7c64
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d7c64
test al, 0x10
je 0x1400d7c64
call r15
mov dword [rax], 0x15
jmp 0x1400d7c64
mov eax, dword [0x1401e4954]
cmp eax, 1
je 0x1400d8000
cmp eax, 2
jne 0x1400d8034
mov r8d, 4
mov rdx, r15
lea rcx, str..git
call qword [sym.imp.msvcrt.dll__strnicmp_1]
test eax, eax
jne 0x1400d7c80
movzx eax, byte [r15 + 4]
test al, al
je 0x1400d7f00
movsx edx, al
cmp al, 0x2f
je 0x1400d7f00
cmp edx, 0x5c
jne 0x1400d7c80
nop
test r14d, r14d
js 0x1400d7fd0
mov edx, 1
mov rcx, rbp
call fcn.1400d10f0
test eax, eax
je 0x1400d7c80
mov rdx, rbx
lea rcx, str.could_not_mark__s_as_hidden.
call fcn.1400b6cc0
jmp 0x1400d7c80
movsx eax, byte [rbx + 1]
cmp eax, 0x2f
je 0x1400d7f4a
cmp eax, 0x5c
jne 0x1400d7d09
cmp byte [rbx + 2], 0x2e
jne 0x1400d7d09
movsx eax, byte [rbx + 3]
cmp eax, 0x2f
je 0x1400d7f66
cmp eax, 0x5c
jne 0x1400d7d09
lea rcx, [rbx + 4]
mov r8d, 4
lea rdx, str.pipe
call qword [sym.imp.msvcrt.dll__strnicmp_1]
test eax, eax
jne 0x1400d7d09
movsx eax, byte [rbx + 8]
cmp eax, 0x2f
je 0x1400d7f97
cmp eax, 0x5c
jne 0x1400d7d09
cmp byte [rbx + 9], 0
je 0x1400d7d09
jmp 0x1400d7bd3
mov dword [0x1401e48a0], 1
jmp 0x1400d7cea
call rbx
mov dword [rax], 0x26
jmp 0x1400d7cc2
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0xd
jne 0x1400d7c80
and esi, 0xfffffeff
mov r8d, edi
mov rcx, rbp
mov edx, esi
call r13
mov r14d, eax
test eax, eax
jns 0x1400d7f09
jmp 0x1400d7c80
cmp byte [r15], 0x2e
je 0x1400d7f00
jmp 0x1400d7c80
cmp ebp, 0x500
mov eax, 0x16
mov ebx, 2
cmove ebx, eax
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], ebx
jmp 0x1400d7cc2
call fcn.1401d96b0
call fcn.1400d0120
nop
nop word [rax + rax]