Function at 0x14001c3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x2c], 0
cmp dword [0x14011a340], 0
jne 0x14001c409
mov dword [0x14011a340], 1
lea rcx, str.CreateSymbolicLinkW
call fcn.14001c0c0
mov qword [0x14011a338], rax
cmp qword [0x14011a338], 0
jne 0x14001c41a
xor eax, eax
jmp 0x14001c5fe
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x14001c42d
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14001c468
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor eax, eax
jmp 0x14001c5fe
mov rax, qword [rsp + 0x48]
lea rax, [rax + rax + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001c48f
xor eax, eax
jmp 0x14001c5fe
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
test eax, eax
je 0x14001c4ef
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x2f
jne 0x14001c4c1
mov eax, 0x5c
mov rcx, qword [rsp + 0x20]
mov word [rcx], ax
jmp 0x14001c4d1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
jmp 0x14001c499
xor eax, eax
mov rcx, qword [rsp + 0x20]
mov word [rcx], ax
cmp dword [rsp + 0x80], 1
je 0x14001c56e
cmp dword [rsp + 0x80], 2
je 0x14001c563
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 2]
cmp eax, 0x5c
je 0x14001c563
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 2]
cmp eax, 0x2e
jne 0x14001c56e
cmp qword [rsp + 0x48], 1
je 0x14001c563
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 4]
cmp eax, 0x5c
je 0x14001c563
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 4]
cmp eax, 0x2e
jne 0x14001c56e
cmp qword [rsp + 0x48], 2
je 0x14001c563
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 6]
cmp eax, 0x5c
jne 0x14001c56e
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
or eax, 2
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14001c5b0
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x14001c5a6
mov rcx, qword [rsp + 0x70]
call fcn.140016590
jmp 0x14001c5b0
mov rcx, qword [rsp + 0x70]
call fcn.140016520
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [0x14011a338]
movzx eax, al
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x14001c5ef
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [0x14011a338]
movzx eax, al
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x2c]
add rsp, 0x68
ret