Function at 0x1400021a0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140076088]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r13, rdx
mov qword [rsp + 0x30], rdx
mov r15, rcx
lea r14, [rcx + 0x18]
xor edi, edi
mov qword [r14 + 0x10], rdi
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x140002202
mov rax, qword [r14]
mov word [rax], di
mov rbx, qword [rdx]
cmp rbx, qword [rdx + 8]
je 0x1400028bd
mov r12b, dil
cmp qword [rbx + 0x10], 1
jbe 0x1400024a2
cmp qword [rbx + 0x10], rdi
jbe 0x14000299a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002237
mov rax, qword [rbx]
cmp word [rax], 0x2f
je 0x14000240b
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000224e
mov rax, qword [rbx]
cmp word [rax], 0x2d
je 0x14000240b
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002265
mov rax, qword [rbx]
cmp word [rax], 0x40
jne 0x1400024a2
test byte [r15 + 0x38], 1
je 0x1400024a2
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140005bac
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140002296
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400023a7
test al, 0x10
jne 0x1400023a7
xor esi, esi
mov qword [rsp + 0x20], rsi
cmp qword [rdi + 0x18], 8
jb 0x1400022be
mov rdi, qword [rdi]
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x210]
mov r12d, 0x104
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov qword [rsp + 0x50], rsi
mov edi, 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x40], si
lea rdx, [rbp + 0x210]
lea rcx, [rsp + 0x40]
call fcn.140005c50
nop
mov rax, qword [rsp + 0x20]
mov word [rax], si
lea rdx, [rbp]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x60], si
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140002b7c
test al, al
jne 0x14000236f
lea rcx, [rsp + 0x60]
call fcn.140011264
nop
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x40]
call fcn.140011264
jmp 0x1400023ef
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.140001f44
mov dil, al
lea rcx, [rsp + 0x60]
call fcn.140011264
nop
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x40]
call fcn.140011264
jmp 0x1400023f2
lea rdx, [0x1400673a8]
mov rcx, r14
call fcn.140005c50
lea rcx, str.File_not_found:
call fcn.14002adf0
mov r8, rax
lea rdx, str.File_not_found:
mov rcx, r14
call fcn.140006f20
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400023e1
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, r14
call fcn.140006f20
xor esi, esi
mov dil, sil
lea rcx, [rbp - 0x40]
call fcn.140011264
test dil, dil
je 0x1400028b9
xor edi, edi
jmp 0x14000253c
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140005bac
mov r12, rax
mov rdi, qword [r15]
cmp rdi, qword [r15 + 8]
je 0x14000248b
cmp dword [rdi], 0
jne 0x14000247f
mov r13, qword [rdi + 8]
test byte [r13 + 8], 2
lea rax, [fcn.14002a82c]
lea rcx, [fcn.14002a744]
cmovne rax, rcx
mov qword [rsp + 0x28], rax
mov rsi, qword [r13 + 0x10]
jmp 0x140002479
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x14000245d
mov rdx, qword [r12]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14000246a
mov rcx, qword [rsi]
call rax
test eax, eax
je 0x140002485
add rsi, 0x20
mov rax, qword [rsp + 0x28]
cmp rsi, qword [r13 + 0x18]
jne 0x14000244e
add rdi, 0x10
jmp 0x14000241d
mov rsi, qword [rdi + 8]
jmp 0x14000248d
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.140011264
mov r12b, 1
mov r13, qword [rsp + 0x30]
xor edi, edi
jmp 0x1400024d8
mov rdi, qword [r15]
cmp rdi, qword [r15 + 8]
je 0x1400024d4
cmp dword [rdi], 1
jne 0x1400024ce
mov rsi, qword [rdi + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test al, al
je 0x1400024ce
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test al, al
jne 0x14000249e
add rdi, 0x10
jmp 0x1400024a5
xor edi, edi
mov esi, edi
test rsi, rsi
je 0x14000284e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test al, al
je 0x14000252c
test r12b, r12b
mov r12d, 0x20
je 0x140002502
add rbx, r12
cmp rbx, qword [r13 + 8]
je 0x140002549
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test al, al
je 0x1400026cb
mov rax, qword [rsi]
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x20]
test al, al
je 0x1400025d8
mov al, byte [rsi + 8]
jmp 0x140002537
mov al, byte [rsi + 8]
test al, 1
jne 0x1400027c3
or al, 1
mov byte [rsi + 8], al
add rbx, 0x20
cmp rbx, qword [r13 + 8]
jmp 0x14000220c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140006d34
nop
lea r8, [rsp + 0x40]
lea rdx, str.Argument_
lea rcx, [rsp + 0x60]
call fcn.1400071c8
nop
lea r8, str._expects_a_parameter.
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400072f4
mov rbx, rax
cmp r14, rax
je 0x1400025b9
mov rcx, r14
call fcn.140011264
mov r8, r12
mov rdx, rbx
mov rcx, r14
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov esi, 7
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea rcx, [rbp - 0x40]
call fcn.140011264
nop
lea rcx, [rsp + 0x60]
call fcn.140011264
nop
lea rcx, [rsp + 0x40]
jmp 0x1400028b4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140006d34
nop
lea r8, [rsp + 0x60]
lea rdx, str.Argument_
lea rcx, [rbp - 0x60]
call fcn.1400071c8
nop
lea r8, str._cannot_accept_parameter:_
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400072f4
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002627
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140006f20
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov esi, 7
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea r8, [0x14006632c]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.1400072f4
mov rbx, rax
cmp r14, rax
je 0x14000269d
mov rcx, r14
call fcn.140011264
mov r8, r12
mov rdx, rbx
mov rcx, r14
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea rcx, [rbp - 0x40]
call fcn.140011264
nop
lea rcx, [rsp + 0x40]
call fcn.140011264
nop
lea rcx, [rbp - 0x80]
call fcn.140011264
nop
lea rcx, [rbp - 0x60]
call fcn.140011264
nop
jmp 0x1400027b9
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140006d34
nop
lea r8, [rsp + 0x60]
lea rdx, str.Argument_
lea rcx, [rbp - 0x40]
call fcn.1400071c8
nop
lea r8, str._cannot_accept_another_parameter:_
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400072f4
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000271a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140006f20
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov esi, 7
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea r8, [0x14006632c]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400072f4
mov rbx, rax
cmp r14, rax
je 0x140002790
mov rcx, r14
call fcn.140011264
mov r8, r12
mov rdx, rbx
mov rcx, r14
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea rcx, [rbp - 0x60]
call fcn.140011264
nop
lea rcx, [rsp + 0x40]
call fcn.140011264
nop
lea rcx, [rbp - 0x80]
call fcn.140011264
nop
lea rcx, [rbp - 0x40]
call fcn.140011264
nop
lea rcx, [rsp + 0x60]
jmp 0x1400028b4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140006d34
nop
lea r8, [rsp + 0x40]
lea rdx, str.Argument_
lea rcx, [rbp - 0x80]
call fcn.1400071c8
nop
lea r8, str._already_present.
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400072f4
mov rbx, rax
cmp r14, rax
je 0x140002835
mov rcx, r14
call fcn.140011264
mov r8d, 0x20
mov rdx, rbx
mov rcx, r14
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov esi, 7
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea rcx, [rbp - 0x60]
call fcn.140011264
nop
lea rcx, [rbp - 0x80]
call fcn.140011264
nop
jmp 0x1400025ce
mov r8, rbx
lea rdx, str.Unrecognized_argument_
lea rcx, [rbp - 0x80]
call fcn.14000711c
nop
lea r8, [0x14006632c]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400072f4
mov rbx, rax
cmp r14, rax
je 0x1400028a6
mov rcx, r14
call fcn.140011264
mov r8d, 0x20
mov rdx, rbx
mov rcx, r14
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov esi, 7
mov qword [rbx + 0x18], rsi
mov word [rbx], di
lea rcx, [rbp - 0x60]
call fcn.140011264
nop
lea rcx, [rbp - 0x80]
call fcn.140011264
xor al, al
jmp 0x1400028dc
mov rbx, qword [r15]
jmp 0x1400028d4
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
je 0x14000290c
add rbx, 0x10
cmp rbx, qword [r15 + 8]
jne 0x1400028c2
mov al, 1
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140025e90
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [rbx + 8]
mov rdx, qword [rax + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x40]
call fcn.140006d34
nop
lea r8, [rsp + 0x40]
lea rdx, str.Expected_argument_
lea rcx, [rbp - 0x80]
call fcn.1400071c8
nop
lea r8, [0x14006632c]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400072f4
mov rbx, rax
cmp r14, rax
je 0x140002981
mov rcx, r14
call fcn.140011264
mov r8d, 0x20
mov rdx, rbx
mov rcx, r14
call fcn.140027990
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rcx, [rbp - 0x60]
call fcn.140011264
nop
lea rcx, [rbp - 0x80]
call fcn.140011264
nop
jmp 0x1400025ce
call fcn.140006f0c
int3