Function at 0x1400a86fc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r15d, r15d
mov r14, rcx
mov qword [rbp - 0x39], r15
mov esi, r15d
call fcn.1400a7338
lea rdi, [0x140169d00]
test al, al
je 0x1400a883c
lea rcx, [rbp - 0x21]
call fcn.1400a72cc
test eax, eax
js 0x1400a883c
mov rcx, qword [rbp - 0x21]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rcx + rdx*2], r15w
jne 0x1400a8763
lea rax, [rbp - 0x29]
lea r9, [rbp - 0x25]
lea r8, [0x140169d90]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x2d]
inc rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll__snwscanf_s]
cmp eax, 3
jne 0x1400a883c
cmp dword [rbp - 0x25], r15d
jne 0x1400a883c
cmp dword [rbp - 0x2d], r15d
jne 0x1400a883c
cmp dword [rbp - 0x29], r15d
jne 0x1400a883c
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.1400a77fc
test eax, eax
js 0x1400a883c
mov rcx, qword gs:[0x60]
mov r8, qword [rbp - 0x21]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor r11d, r11d
lea rcx, [rbp + 0xf]
mov qword [rbp - 1], r11
lea r8d, [r11 + 0x28]
xor edx, edx
mov qword [rbp + 3], r11
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 9]
lea r8, [rbp + 0xf]
lea rdx, [rbp - 1]
mov dword [rbp - 1], r15d
call fcn.1400a7f24
test eax, eax
jns 0x1400a881d
cmp eax, 0xc000003a
jmp 0x1400a8821
cmp dword [rbp + 0x2b], 7
jne 0x1400a883c
lea rdx, [rbp - 0x39]
lea rcx, [0x140169cb0]
call fcn.1400a8adc
mov ebx, eax
cmp eax, 0xc0000452
jne 0x1400a884a
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.1400a8adc
mov ebx, eax
test ebx, ebx
js 0x1400a88ee
lea rcx, [rbp - 0x19]
xor edx, edx
mov dword [rbp - 0x31], r15d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdi, qword [rbp - 0x39]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400a888b
test eax, eax
js 0x1400a88f2
mov ebx, 0xc0000001
jmp 0x1400a88f2
mov rcx, qword gs:[0x60]
mov r8d, dword [rbp - 0x31]
xor edx, edx
mov rcx, qword [rcx + 0x30]
add r8, 2
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, qword [rbp - 0x39]
mov rsi, rax
test rax, rax
jne 0x1400a88bb
mov ebx, 0xc000009a
jmp 0x1400a88f2
mov qword [rbp - 0x11], rax
movzx eax, word [rbp - 0x31]
lea rdx, [rbp - 0x19]
xor r8d, r8d
mov rcx, rdi
mov word [rbp - 0x17], ax
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
test eax, eax
js 0x1400a88f2
movzx eax, word [rbp - 0x19]
shr rax, 1
mov word [rsi + rax*2], r15w
mov qword [r14], rsi
jmp 0x1400a88f2
mov rdi, qword [rbp - 0x39]
test rdi, rdi
je 0x1400a8900
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x1400a8921
test rsi, rsi
je 0x1400a8921
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret