Function at 0x14004c9ec
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 [0x14007b108]
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 0x14004ca5b
mov rdx, qword [rdx]
lea r8, [rcx + 0x40]
call fcn.14005319c
mov dword [r15 + 0x3c], eax
xor r8d, r8d
mov word [r15 + 0x38], 0x101
mov ecx, dword [r15 + 0x3c]
test ecx, ecx
js 0x14004ced8
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 0x14004cad3
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], r8w
jne 0x14004ca97
cmp rax, 3
jb 0x14004cb8c
add rax, 0xfffffffffffffffd
lea rdx, [0x140074588]
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 0x14004caee
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 0x14004cb8c
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], r8w
jne 0x14004cafa
sub rax, 3
mov edi, 0x8007000e
test r12, r12
je 0x14004cb77
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r12 + rcx*2], r8w
jne 0x14004cb16
cmp rax, rcx
ja 0x14004cb77
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 0x14004cb71
lea r9, [rsi - 1]
mov r8, r12
mov rdx, rsi
mov rcx, rax
call fcn.140003678
mov edi, eax
xor r8d, r8d
mov esi, dword [rsp + 0x34]
jmp 0x14004cb7c
mov edi, 0x80070057
test edi, edi
js 0x14004ce8b
mov r12, r14
jmp 0x14004cc8d
test r12, r12
je 0x14004cbc8
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.14004a8c4
mov r14, qword [rbp - 0x79]
mov edi, eax
mov esi, dword [rsp + 0x34]
xor r8d, r8d
jmp 0x14004cbcd
mov edi, 0x80070057
test edi, edi
js 0x14004ce8b
cmp dword [rsp + 0x38], r8d
je 0x14004cc8d
mov r12, r14
test esi, esi
je 0x14004cc8d
mov r14, qword [rbp - 0x51]
mov r15d, esi
cmp qword [r14], r8
jne 0x14004cc73
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 0x14004cc48
xor r9d, r9d
lea r8, [0x14006d5e0]
mov rcx, rax
lea edx, [r9 + 1]
call fcn.140003678
mov edi, eax
xor r8d, r8d
test edi, edi
js 0x14004cc73
test rsi, rsi
je 0x14004cc73
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 0x14004cbf2
mov r14, qword [rbp - 0x79]
mov esi, dword [rsp + 0x34]
mov r15, qword [rbp - 0x49]
test edi, edi
js 0x14004ce87
lea rdx, [rbp - 0x21]
mov rcx, r12
call fcn.14004a740
mov edi, eax
test eax, eax
js 0x14004ce0b
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.1400532a8
test eax, eax
js 0x14004cde3
mov rax, qword [rbp - 0x61]
mov r9, rbx
mov rcx, qword [r15 + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140053508
test eax, eax
js 0x14004cde3
xor r13b, r13b
cmp dword [rsp + 0x38], 0
mov byte [rsp + 0x30], r13b
je 0x14004cddf
test esi, esi
je 0x14004ce02
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 0x14004cd7d
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 0x14004cd76
xor r9d, r9d
lea r8, [0x14006d5e0]
mov rcx, rax
lea edx, [r9 + 1]
call fcn.140003678
mov r14d, eax
not r14d
shr r14d, 0x1f
mov rdx, qword [rbp - 0x61]
mov r9, rsi
mov r8, rdi
mov rcx, rbx
call fcn.14004c104
mov edi, eax
test r14d, r14d
je 0x14004cdba
test rsi, rsi
je 0x14004cdba
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 0x14004cd18
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 0x14004ce02
xor edi, edi
jmp 0x14004ce02
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.14004a810
test r14, r14
je 0x14004ce33
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.14004a838
mov rcx, qword [rbp - 0x51]
mov edx, esi
call fcn.14004a838
xor r8d, r8d
test edi, edi
js 0x14004ce87
cmp qword [rbp - 0x71], r8
je 0x14004ce7c
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 0x14004ceab
mov edi, 0x80070057
mov r12, qword [rbp - 0x69]
mov r13b, 1
test r13b, r13b
je 0x14004ca72
test edi, edi
js 0x14004cef2
mov rcx, qword [rbp - 0x31]
mov edi, r8d
mov rax, qword [rbp - 0x61]
mov qword [rcx], rax
jmp 0x14004cef2
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x29]
call fcn.14004a4d8
xor r8d, r8d
mov edi, eax
cmp eax, 1
je 0x14004ce87
test eax, eax
js 0x14004ce87
mov r12, qword [rbp - 0x71]
mov rbx, qword [rbp - 0x61]
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x39], rbx
jmp 0x14004ce8e
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.140068870
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret