Function at 0x1400326c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc8
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x77]
mov rbx, r8
mov qword [rbp - 0x29], rax
xor r8d, r8d
mov r12, r9
mov rax, qword [rbp + 0x7f]
mov r15, rcx
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x69], r9
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x49], rcx
cmp byte [rcx + 0x38], r8b
jne 0x14003272f
mov rdx, qword [rdx]
lea r8, [rcx + 0x40]
call fcn.140037370
mov dword [r15 + 0x3c], eax
xor r8d, r8d
mov word [r15 + 0x38], 0x101
mov ecx, dword [r15 + 0x3c]
test ecx, ecx
js 0x140032bac
mov r13b, r8b
mov qword [rbp - 0x71], r8
mov qword [rbp - 0x61], r8
mov dword [rsp + 0x38], r8d
mov r14, r8
mov qword [rbp - 0x79], r8
mov esi, r8d
mov qword [rbp - 0x41], r8
mov qword [rbp - 0x51], r8
mov dword [rsp + 0x34], r8d
test r12, r12
je 0x1400327a7
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], r8w
jne 0x14003276b
cmp rax, 3
jb 0x140032860
add rax, 0xfffffffffffffffd
lea rdx, [0x1400aa840]
lea rcx, [r12 + rax*2]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
xor r8d, r8d
test eax, eax
mov ecx, r8d
sete cl
jmp 0x1400327c2
mov rax, qword gs:[0x30]
mov ecx, r8d
mov r14, qword [rbp - 0x79]
mov esi, dword [rsp + 0x34]
mov dword [rax + 0x68], 0x57
test ecx, ecx
je 0x140032860
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], r8w
jne 0x1400327ce
sub rax, 3
mov edi, 0x8007000e
test r12, r12
je 0x14003284b
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r12 + rcx*2], r8w
jne 0x1400327ea
cmp rax, rcx
ja 0x14003284b
mov rcx, qword gs:[0x60]
lea rsi, [rax + 1]
lea r8, [rsi + rsi]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor r8d, r8d
mov qword [rbp - 0x79], rax
mov r14, rax
test rax, rax
je 0x140032845
lea r9, [rsi - 1]
mov r8, r12
mov rdx, rsi
mov rcx, rax
call fcn.14000274c
mov edi, eax
xor r8d, r8d
mov esi, dword [rsp + 0x34]
jmp 0x140032850
mov edi, 0x80070057
test edi, edi
js 0x140032b5f
mov r12, r14
jmp 0x140032961
test r12, r12
je 0x14003289c
lea rax, [rsp + 0x34]
mov rcx, r12
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x41]
lea rax, [rbp - 0x51]
lea r8, [rbp - 0x79]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
call fcn.140030720
mov r14, qword [rbp - 0x79]
mov edi, eax
mov esi, dword [rsp + 0x34]
xor r8d, r8d
jmp 0x1400328a1
mov edi, 0x80070057
test edi, edi
js 0x140032b5f
cmp dword [rsp + 0x38], r8d
je 0x140032961
mov r12, r14
test esi, esi
je 0x140032961
mov r14, qword [rbp - 0x51]
mov r15d, esi
cmp qword [r14], r8
jne 0x140032947
mov rcx, qword gs:[0x60]
mov edx, 8
mov edi, 0x8007000e
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx - 6]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor r8d, r8d
mov qword [rbp - 0x59], rax
mov rsi, rax
test rax, rax
je 0x14003291c
xor r9d, r9d
lea r8, [0x14009ce90]
mov rcx, rax
lea edx, [r9 + 1]
call fcn.14000274c
mov edi, eax
xor r8d, r8d
test edi, edi
js 0x140032947
test rsi, rsi
je 0x140032947
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor r8d, r8d
add r14, 8
sub r15, 1
jne 0x1400328c6
mov r14, qword [rbp - 0x79]
mov esi, dword [rsp + 0x34]
mov r15, qword [rbp - 0x49]
test edi, edi
js 0x140032b5b
lea rdx, [rbp - 0x21]
mov rcx, r12
call fcn.140030544
mov edi, eax
test eax, eax
js 0x140032adf
mov rdx, qword [r15 + 0x40]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
call fcn.140037598
test eax, eax
js 0x140032ab7
mov rax, qword [rbp - 0x61]
mov r9, rbx
mov rcx, qword [r15 + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140037c44
test eax, eax
js 0x140032ab7
xor r13b, r13b
cmp dword [rsp + 0x38], 0
mov byte [rsp + 0x30], r13b
je 0x140032ab3
test esi, esi
je 0x140032ad6
mov r15, qword [rbp - 0x51]
mov r12, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x49]
sub r12, r15
mov r13d, esi
mov rsi, qword [r15]
xor r14d, r14d
mov rdi, qword [r12 + r15]
mov qword [rbp - 0x59], rsi
test rsi, rsi
jne 0x140032a51
mov rcx, qword gs:[0x60]
lea edx, [rsi + 8]
lea r8d, [rsi + 2]
mov r14d, 0x8007000e
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x59], rax
mov rsi, rax
test rax, rax
je 0x140032a4a
xor r9d, r9d
lea r8, [0x14009ce90]
mov rcx, rax
lea edx, [r9 + 1]
call fcn.14000274c
mov r14d, eax
not r14d
shr r14d, 0x1f
mov rdx, qword [rbp - 0x61]
mov r9, rsi
mov r8, rdi
mov rcx, rbx
call fcn.140031f34
mov edi, eax
test r14d, r14d
je 0x140032a8e
test rsi, rsi
je 0x140032a8e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
add r15, 8
sub r13, 1
jne 0x1400329ec
mov r14, qword [rbp - 0x79]
mov esi, dword [rsp + 0x34]
mov rbx, qword [rbp - 0x39]
mov r15, qword [rbp - 0x49]
mov r13b, byte [rsp + 0x30]
jmp 0x140032ad6
xor edi, edi
jmp 0x140032ad6
mov ecx, eax
mov r13b, 1
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rcx, [rbp - 0x21]
call fcn.14003066c
test r14, r14
je 0x140032b07
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x79]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov esi, dword [rsp + 0x34]
mov rcx, qword [rbp - 0x41]
mov edx, esi
call fcn.140030694
mov rcx, qword [rbp - 0x51]
mov edx, esi
call fcn.140030694
xor r8d, r8d
test edi, edi
js 0x140032b5b
cmp qword [rbp - 0x71], r8
je 0x140032b50
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x71]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor r8d, r8d
mov qword [rbp - 0x71], r8
cmp qword [rbp - 0x29], r8
jne 0x140032b7f
mov edi, 0x80070057
mov r12, qword [rbp - 0x69]
mov r13b, 1
test r13b, r13b
je 0x140032746
test edi, edi
js 0x140032bc6
mov rcx, qword [rbp - 0x31]
mov edi, r8d
mov rax, qword [rbp - 0x61]
mov qword [rcx], rax
jmp 0x140032bc6
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x29]
call fcn.14003032c
xor r8d, r8d
mov edi, eax
cmp eax, 1
je 0x140032b5b
test eax, eax
js 0x140032b5b
mov r12, qword [rbp - 0x71]
mov rbx, qword [rbp - 0x61]
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x39], rbx
jmp 0x140032b62
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140094220
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret