Function at 0x140002efc
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 - 0x478]
sub rsp, 0x550
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140041080]
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 0x140002f66
mov rax, qword [r14]
mov word [rax], di
mov rbx, qword [rdx]
cmp rbx, qword [rdx + 8]
je 0x1400036f1
mov r12b, dil
cmp qword [rbx + 0x10], 1
jbe 0x1400031f5
cmp qword [rbx + 0x10], rdi
jbe 0x1400037fa
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002f9b
mov rax, qword [rbx]
cmp word [rax], 0x2f
je 0x14000315e
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002fb2
mov rax, qword [rbx]
cmp word [rax], 0x2d
je 0x14000315e
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002fc9
mov rax, qword [rbx]
cmp word [rax], 0x40
jne 0x1400031f5
test byte [r15 + 0x38], 1
je 0x1400031f5
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140005d54
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140002ffb
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003102
test al, 0x10
jne 0x140003102
xor esi, esi
mov qword [rsp + 0x20], rsi
cmp qword [rdi + 0x18], 8
jb 0x140003023
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.140005df8
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 [rbp - 0x70], rsi
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x80], si
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1400039dc
test al, al
jne 0x1400030cc
lea rcx, [rbp - 0x80]
call fcn.140006ca0
nop
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x40]
call fcn.140006ca0
jmp 0x140003141
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r15
call fcn.140002ca0
mov dil, al
lea rcx, [rbp - 0x80]
call fcn.140006ca0
nop
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x40]
call fcn.140006ca0
jmp 0x140003144
lea rdx, [0x14003a444]
mov rcx, r14
call fcn.140005df8
mov r8d, 0x10
lea rdx, str.File_not_found:
mov rcx, r14
call fcn.140006fe8
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140003133
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, r14
call fcn.140006fe8
xor esi, esi
mov dil, sil
lea rcx, [rsp + 0x60]
call fcn.140006ca0
test dil, dil
je 0x1400036ed
xor edi, edi
jmp 0x14000328a
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140005d54
mov r12, rax
mov rdi, qword [r15]
cmp rdi, qword [r15 + 8]
je 0x1400031de
cmp dword [rdi], 0
jne 0x1400031d2
mov r13, qword [rdi + 8]
test byte [r13 + 8], 2
lea rax, [fcn.14000f840]
lea rcx, [fcn.14000f758]
cmovne rax, rcx
mov qword [rsp + 0x28], rax
mov rsi, qword [r13 + 0x10]
jmp 0x1400031cc
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x1400031b0
mov rdx, qword [r12]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400031bd
mov rcx, qword [rsi]
call rax
test eax, eax
je 0x1400031d8
add rsi, 0x20
mov rax, qword [rsp + 0x28]
cmp rsi, qword [r13 + 0x18]
jne 0x1400031a1
add rdi, 0x10
jmp 0x140003170
mov rsi, qword [rdi + 8]
jmp 0x1400031e0
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.140006ca0
mov r12b, 1
mov r13, qword [rsp + 0x30]
xor edi, edi
jmp 0x14000322b
mov rdi, qword [r15]
cmp rdi, qword [r15 + 8]
je 0x140003227
cmp dword [rdi], 1
jne 0x140003221
mov rsi, qword [rdi + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test al, al
je 0x140003221
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test al, al
jne 0x1400031f1
add rdi, 0x10
jmp 0x1400031f8
xor edi, edi
mov esi, edi
test rsi, rsi
je 0x140003661
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test al, al
je 0x14000327a
test r12b, r12b
je 0x140003250
add rbx, 0x20
cmp rbx, qword [r13 + 8]
je 0x140003297
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test al, al
je 0x14000347b
mov rax, qword [rsi]
mov rdx, rbx
mov rcx, rsi
call qword [rax + 0x20]
test al, al
je 0x140003346
mov al, byte [rsi + 8]
jmp 0x140003285
mov al, byte [rsi + 8]
test al, 1
jne 0x1400035b5
or al, 1
mov byte [rsi + 8], al
add rbx, 0x20
cmp rbx, qword [r13 + 8]
jmp 0x140002f70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140006d04
nop
lea r8, [rbp - 0x60]
lea rdx, str.Argument_
lea rcx, [rsp + 0x60]
call fcn.14000729c
nop
mov r8d, 0x16
lea rdx, str._expects_a_parameter.
mov rcx, rax
call fcn.140006fe8
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x50], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x140003327
mov rcx, r14
call fcn.140006ca0
movups xmmword [r14], xmm6
movups xmmword [r14 + 0x10], xmm7
movdqa xmm0, xmmword [0x14003b540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
lea rcx, [rsp + 0x60]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x60]
jmp 0x1400036e8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140006d04
nop
lea r8, [rsp + 0x60]
lea rdx, str.Argument_
lea rcx, [rbp - 0x40]
call fcn.14000729c
nop
mov r8d, 0x1c
lea rdx, str._cannot_accept_parameter:_
mov rcx, rax
call fcn.140006fe8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rdi
mov esi, 7
mov qword [rax + 0x18], rsi
mov word [rax], di
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400033bd
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140006fe8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov word [rax], di
mov r8d, 2
lea rdx, [0x14003a4cc]
lea rcx, [rbp - 0x80]
call fcn.140006fe8
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x50], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov word [rax], di
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x14000344d
mov rcx, r14
call fcn.140006ca0
movups xmmword [r14], xmm6
movups xmmword [r14 + 0x10], xmm7
movdqa xmm0, xmmword [0x14003b540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x80]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x60]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x40]
call fcn.140006ca0
nop
jmp 0x1400035ab
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140006d04
nop
lea r8, [rsp + 0x60]
lea rdx, str.Argument_
lea rcx, [rbp - 0x40]
call fcn.14000729c
nop
mov r8d, 0x24
lea rdx, str._cannot_accept_another_parameter:_
mov rcx, rax
call fcn.140006fe8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rdi
mov esi, 7
mov qword [rax + 0x18], rsi
mov word [rax], di
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400034f2
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140006fe8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov word [rax], di
mov r8d, 2
lea rdx, [0x14003a4cc]
lea rcx, [rbp - 0x60]
call fcn.140006fe8
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x50], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov word [rax], di
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x140003582
mov rcx, r14
call fcn.140006ca0
movups xmmword [r14], xmm6
movups xmmword [r14 + 0x10], xmm7
movdqa xmm0, xmmword [0x14003b540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x60]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x80]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x40]
call fcn.140006ca0
nop
lea rcx, [rsp + 0x60]
jmp 0x1400036e8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140006d04
nop
lea r8, [rsp + 0x60]
lea rdx, str.Argument_
lea rcx, [rbp - 0x40]
call fcn.14000729c
nop
mov r8d, 0x12
lea rdx, str._already_present.
mov rcx, rax
call fcn.140006fe8
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x50], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x140003647
mov rcx, r14
call fcn.140006ca0
movups xmmword [r14], xmm6
movups xmmword [r14 + 0x10], xmm7
movdqa xmm0, xmmword [0x14003b540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x40]
call fcn.140006ca0
nop
jmp 0x1400035ab
mov r8, rbx
lea rdx, str.Unrecognized_argument_
lea rcx, [rbp - 0x40]
call fcn.1400071e4
nop
mov r8d, 2
lea rdx, [0x14003a4cc]
mov rcx, rax
call fcn.140006fe8
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x50], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x1400036d9
mov rcx, r14
call fcn.140006ca0
movups xmmword [r14], xmm6
movups xmmword [r14 + 0x10], xmm7
movdqa xmm0, xmmword [0x14003b540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x40]
call fcn.140006ca0
xor al, al
jmp 0x140003710
mov rbx, qword [r15]
jmp 0x140003708
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
je 0x14000374a
add rbx, 0x10
cmp rbx, qword [r15 + 8]
jne 0x1400036f6
mov al, 1
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14000b540
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
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 + 0x70], xmm0
lea rcx, [rsp + 0x60]
call fcn.140006d04
nop
lea r8, [rsp + 0x60]
lea rdx, str.Expected_argument_
lea rcx, [rbp - 0x40]
call fcn.14000729c
nop
mov r8d, 2
lea rdx, [0x14003a4cc]
mov rcx, rax
call fcn.140006fe8
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x50], xmm7
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rax, [rsp + 0x40]
cmp r14, rax
je 0x1400037e0
mov rcx, r14
call fcn.140006ca0
movups xmmword [r14], xmm6
movups xmmword [r14 + 0x10], xmm7
movdqa xmm0, xmmword [0x14003b540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
lea rcx, [rbp - 0x40]
call fcn.140006ca0
nop
jmp 0x1400035ab
call fcn.140006fd4
int3