Function at 0x140006bf8
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 [0x14000f098]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
mov r14, rcx
mov qword [rbp - 0x31], r15
mov esi, r15d
call fcn.14000577c
lea rdi, str.ArcNamemulti_0_disk_0_rdisk_0_
test al, al
je 0x140006d45
lea rdx, [rbp - 0x19]
lea rcx, str.FirmwareBootDevice
call fcn.14000570c
test eax, eax
js 0x140006d45
mov rcx, qword [rbp - 0x19]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rcx + rdx*2], r15w
jne 0x140006c66
lea rax, [rbp - 0x21]
inc rdx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x29]
lea rax, [rbp - 0x25]
lea r8, str.multi__d_disk__d_rdisk__d_
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll__snwscanf_s]
cmp eax, 3
jne 0x140006d45
cmp dword [rbp - 0x29], r15d
jne 0x140006d45
cmp dword [rbp - 0x25], r15d
jne 0x140006d45
cmp dword [rbp - 0x21], r15d
jne 0x140006d45
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140003934
test eax, eax
js 0x140006d45
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x19]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, 0x28
mov qword [rbp + 0xb], r15
mov r8d, ebx
lea rcx, [rbp + 0x17]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 1]
lea rax, [rbp + 0x17]
mov dword [rsp + 0x28], ebx
lea r8, [rbp + 7]
mov qword [rsp + 0x20], rax
mov dword [rbp + 7], r15d
call fcn.140005f54
test eax, eax
jns 0x140006d26
cmp eax, 0xc000003a
jmp 0x140006d2a
cmp dword [rbp + 0x33], 7
jne 0x140006d45
lea rdx, [rbp - 0x31]
lea rcx, str.ArcNamemulti_0_disk_0_rdisk_1_
call fcn.140006fe4
mov ebx, eax
cmp eax, 0xc0000452
jne 0x140006d53
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.140006fe4
mov ebx, eax
test ebx, ebx
js 0x140006df7
xor edx, edx
mov dword [rbp - 0x39], r15d
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdi, qword [rbp - 0x31]
lea r8, [rbp - 0x39]
mov rcx, rdi
lea rdx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140006d94
test eax, eax
js 0x140006dfb
mov ebx, 0xc0000001
jmp 0x140006dfb
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp - 0x39]
add r8, 2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, qword [rbp - 0x31]
mov rsi, rax
test rax, rax
jne 0x140006dc4
mov ebx, 0xc000009a
jmp 0x140006dfb
movzx eax, word [rbp - 0x39]
lea rdx, [rbp - 0x11]
xor r8d, r8d
mov word [rbp - 0xf], ax
mov rcx, rdi
mov qword [rbp - 9], rsi
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
test eax, eax
js 0x140006dfb
movzx eax, word [rbp - 0x11]
shr rax, 1
mov word [rsi + rax*2], r15w
mov qword [r14], rsi
jmp 0x140006dfb
mov rdi, qword [rbp - 0x31]
test rdi, rdi
je 0x140006e09
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140006e2a
test rsi, rsi
je 0x140006e2a
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 + 0x3f]
xor rcx, rsp
call fcn.140007520
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