Function at 0x14001f7a0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x4b0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov qword [r11 - 0x18], rsi
mov r8d, 0x206
mov qword [r11 - 0x20], rdi
xor esi, esi
mov qword [r11 - 0x28], r13
mov rdi, rdx
mov r13, rcx
mov word [rsp + 0x260], si
xor edx, edx
lea rcx, [r11 - 0x256]
lea r12, [rsi - 1]
call fcn.1400b1140
xor edx, edx
mov word [rsp + 0x50], si
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1400b1140
mov r8, qword [rdi]
lea rax, [rsp + 0x50]
sub r8, rax
lea rcx, [rsp + 0x50]
mov edx, 0x104
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001f84e
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001f845
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001f820
jmp 0x14001f84a
test rdx, rdx
jne 0x14001f84e
sub rcx, 2
mov word [rcx], si
lea rdx, [rsp + 0x50]
movzx eax, word [rsp + 0x50]
lea rcx, [rsp + 0x50]
test ax, ax
je 0x14001f886
cmp ax, 0x5c
je 0x14001f877
cmp ax, 0x2f
je 0x14001f877
add rcx, 2
jmp 0x14001f87e
add rcx, 2
mov rdx, rcx
movzx eax, word [rcx]
test ax, ax
jne 0x14001f865
mov word [rdx], si
cmp word [rsp + 0x50], si
je 0x14001f8c0
lea rdx, [rsp + 0x260]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14001f8c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001fb0a
mov rcx, qword [rdi]
lea r8, [r13 + 8]
xor r9d, r9d
mov qword [rsp + 0x4d0], rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14001f92f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi]
mov edx, 0x11d
mov r8d, eax
mov rcx, r13
mov ebx, eax
call fcn.14001c6d0
test ebx, ebx
jne 0x14001fb02
mov rcx, r12
mov qword [rsp + 0x480], r15
call fcn.14001c8e0
mov qword [rsp + 0x40], rax
mov r15, rax
test rax, rax
je 0x14001fafa
mov qword [rsp + 0x4a8], rbp
mov rbp, 0xffffffffffffffff
nop
inc rbp
cmp byte [rax + rbp], sil
jne 0x14001f960
add rbp, rax
mov rdi, rax
cmp rax, rbp
jae 0x14001faea
mov qword [rsp + 0x488], r14
mov r15, 0xffffffffffffffff
nop word [rax + rax]
movzx eax, byte [rdi]
mov rbx, rdi
mov r14, rsi
test al, al
js 0x14001f9af
nop dword [rax]
cmp al, 0x20
ja 0x14001f9af
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jns 0x14001f9a0
movzx eax, byte [rbx]
mov rsi, rbx
test al, al
je 0x14001f9d3
nop dword [rax]
cmp al, 0xa
je 0x14001f9d3
cmp al, 0xd
je 0x14001f9d3
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x14001f9c0
cmp rbx, rsi
jbe 0x14001fa1e
mov edi, ebx
mov eax, 2
sub edi, esi
movsxd rcx, edi
inc rcx
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140094b74
mov r9d, edi
mov dword [rsp + 0x28], edi
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rax, edi
xor esi, esi
mov word [r14 + rax*2], si
jmp 0x14001fa20
xor esi, esi
movzx eax, byte [rbx]
cmp al, 0xa
je 0x14001fa2b
cmp al, 0xd
jne 0x14001fa30
inc rbx
jmp 0x14001fa20
mov rdi, rbx
test r14, r14
je 0x14001fad4
mov r8, r14
lea rdx, [0x1400c7b50]
mov rcx, r13
call fcn.14001c6a0
movzx eax, word [r14]
mov rdx, r14
cmp si, ax
jae 0x14001fa73
nop word [rax + rax]
cmp ax, 0x20
ja 0x14001fa73
movzx eax, word [rdx + 2]
add rdx, 2
cmp si, ax
jb 0x14001fa60
movzx eax, word [rdx]
mov r8, rdx
test ax, ax
je 0x14001facc
cmp ax, 0x3b
je 0x14001facc
cmp ax, 0x20
jbe 0x14001fa95
movzx eax, word [r8 + 2]
add r8, 2
jmp 0x14001fa84
test ax, ax
je 0x14001faa6
mov word [r8], si
add r8, 2
movzx eax, word [r8]
cmp si, ax
jae 0x14001fac4
nop dword [rax + rax]
cmp ax, 0x20
ja 0x14001fac4
movzx eax, word [r8 + 2]
add r8, 2
cmp si, ax
jb 0x14001fab0
mov rcx, r13
call fcn.140020370
mov rcx, r14
call fcn.140062970
cmp rbx, rbp
jb 0x14001f990
mov r14, qword [rsp + 0x488]
mov r15, qword [rsp + 0x40]
mov rcx, r15
call fcn.140062970
mov rbp, qword [rsp + 0x4a8]
mov r15, qword [rsp + 0x480]
mov rbx, qword [rsp + 0x4d0]
cmp word [rsp + 0x260], 0
mov rdi, qword [rsp + 0x498]
mov word [r13 + 8], si
mov r13, qword [rsp + 0x490]
mov rsi, qword [rsp + 0x4a0]
je 0x14001fb40
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp r12, 0xffffffffffffffff
je 0x14001fb4f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140094850
add rsp, 0x4b0
pop r12
ret