Function at 0x1400b3300
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set current directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0x590], rax
cmp dword [rbp + 0x600], 0
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
je 0x1400b3350
xor r9d, r9d
xor r8d, r8d
mov edx, 0x184
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rbp + 0x170]
mov r8d, 1
mov rcx, rsi
call fcn.1400ed200
cmp word [rbp + 0x170], 0
jne 0x1400b338a
test ebx, ebx
je 0x1400b338a
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400ebbc0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rsi
mov qword [rsp + 0x6a8], r12
mov qword [rsp + 0x6a0], r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b33ac
test al, 0x10
jne 0x1400b33c2
mov edx, 0x2a
mov rcx, rsi
call fcn.1400f9cdc
test rax, rax
je 0x1400b348b
mov edx, 0x2a
mov rcx, rsi
call fcn.1400f9cdc
test rax, rax
jne 0x1400b33f7
mov rcx, rsi
call fcn.1400e47e0
lea rax, [rsi - 2]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400b33e0
movsd xmm0, qword [0x140183f38]
movsd qword [rax], xmm0
lea rdx, [rbp + 0x170]
mov r8d, 3
mov rcx, rsi
call fcn.1400ed200
cmp dword [rbp + 0x608], 0
je 0x1400b346a
lea rcx, [rbp + 0x380]
xor r9d, r9d
mov edx, 0x104
mov r8d, 0x1000
call fcn.14001eac0
lea rcx, [rbp + 0x380]
mov edx, 0x3b
call fcn.1400f9cdc
mov r8, r14
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x170]
test rax, rax
je 0x1400b3477
call fcn.1400b0230
mov edx, edi
mov rcx, r14
call fcn.1400b5f80
jmp 0x1400b36da
mov r8, r14
mov rdx, rsi
lea rcx, [rbp + 0x170]
call fcn.1400b03e0
mov edx, edi
mov rcx, r14
call fcn.1400b5f80
jmp 0x1400b36da
lea rdx, [0x140183378]
xor r12d, r12d
mov rcx, rsi
mov r15d, r12d
call fcn.1400fafe4
mov rbx, rax
test rax, rax
je 0x1400b36df
mov edx, 2
lea rcx, [rsp + 0x30]
mov r9, rax
lea r8d, [rdx - 1]
call fcn.1400fabdc
movzx eax, word [rsp + 0x30]
mov ecx, 0xfeff
cmp ax, cx
je 0x1400b3510
mov ecx, 0xfffe
cmp ax, cx
je 0x1400b3510
mov ecx, 0xbbef
cmp ax, cx
mov rcx, rbx
jne 0x1400b34ff
mov edx, 1
mov r8d, edx
call fcn.1400fad50
mov edi, 1
mov r15d, edi
jmp 0x1400b3513
xor r8d, r8d
xor edx, edx
call fcn.1400fad50
mov edi, 1
jmp 0x1400b3513
mov edi, r12d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x228
call fcn.1400f9ab0
lea rdx, [rsp + 0x40]
mov r9d, edi
mov r8d, 0x114
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1400b3b60
cmp eax, 1
jne 0x1400b36d2
nop dword [rax]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400b3560
test eax, eax
jle 0x1400b35ab
lea ecx, [rax - 1]
test ecx, ecx
js 0x1400b35ab
movsxd rax, ecx
add rax, rax
nop dword [rax + rax]
movzx edx, word [rsp + rax + 0x40]
cmp dx, 0xd
je 0x1400b3591
cmp dx, 0xa
jne 0x1400b35ab
cmp rax, 0x228
jae 0x1400b370c
mov word [rsp + rax + 0x40], r12w
sub rax, 2
dec ecx
jns 0x1400b3580
lea rcx, [rsp + 0x40]
mov edx, 1
call fcn.14001d910
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400b35c3
test rax, rax
je 0x1400b369c
cmp word [rsp + 0x40], 0x3b
je 0x1400b369c
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x40]
mov r8d, 3
call fcn.1400ed200
lea rcx, [rbp + 0x170]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400b3604
test rax, rax
jne 0x1400b3686
lea r8d, [rax + 3]
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.1400ed200
lea rcx, [rbp + 0x170]
sub rcx, 2
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x1400b3631
lea r8, [rsp + 0x40]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
lea rdx, [rdx + 1]
mov word [rcx + rdx*2 - 2], ax
test ax, ax
jne 0x1400b3650
mov rcx, r12
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x170]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x1400b3670
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x180
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x228
call fcn.1400f9ab0
lea rdx, [rsp + 0x40]
mov r9d, edi
mov r8d, 0x114
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1400b3b60
cmp eax, 1
je 0x1400b3550
mov rcx, rbx
call fcn.1400fa904
mov eax, 1
mov r15, qword [rsp + 0x6a0]
mov r12, qword [rsp + 0x6a8]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x6b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400f8f44
int3