Function at 0x140010280
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r13d, r13d
shr ecx, 0x18
and ecx, 0xf
mov r14d, r8d
mov qword [rbp - 0x20], r13
mov eax, r9d
mov r12, rdx
mov edi, r13d
sub ecx, 1
je 0x140010570
sub ecx, 1
je 0x1400104e2
sub ecx, 1
je 0x1400104af
sub ecx, 1
je 0x1400103ba
sub ecx, 1
je 0x14001037c
sub ecx, 1
je 0x14001033f
cmp ecx, 1
je 0x14001032f
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov r15d, r14d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x14001031c
mov edi, 0xc0000017
jmp 0x14001066d
mov r8, r14
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x14001061b
test r14b, 7
je 0x1400102ef
mov edi, 0xc0000024
jmp 0x14001066d
lea eax, [r14 - 1]
cmp eax, 1
ja 0x140010335
mov rcx, qword gs:[0x60]
mov r15d, 1
xor edx, edx
mov r8d, r15d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x140010312
cmp byte [r12], r13b
setne al
mov byte [rsi], al
jmp 0x14001061b
mov r15d, 8
cmp r14d, r15d
jne 0x140010335
mov rcx, qword gs:[0x60]
mov r8d, r15d
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x140010312
movsd xmm0, qword [r12]
movsd qword [rax], xmm0
jmp 0x14001061b
test r14b, 0xf
jne 0x140010335
shr r14d, 4
mov r15d, r13d
mov ebx, r13d
test r14d, r14d
je 0x140010417
xor edx, edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ecx, ebx
lea rdx, [rbp - 0x18]
shl rcx, 4
add rcx, r12
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov edi, eax
test eax, eax
js 0x14001066d
movzx ecx, word [rbp - 0x18]
add ecx, 2
add r15d, ecx
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
inc ebx
cmp ebx, r14d
jb 0x1400103d3
mov rcx, qword gs:[0x60]
add r15d, 2
mov r8d, r15d
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x140010312
xor ebx, ebx
mov r13, rax
mov dword [rbp + 0x30], ebx
mov eax, ebx
test r14d, r14d
je 0x1400104a2
mov ecx, eax
lea rdx, [rbp - 0x18]
shl rcx, 4
add rcx, r12
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov edi, eax
test eax, eax
js 0x14001062e
movzx eax, word [rbp - 0x18]
mov rcx, r13
mov rdx, qword [rbp - 0x10]
add eax, 2
mov r8d, eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
lea rcx, [rbp - 0x18]
add r13, rbx
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rbp + 0x30]
mov ebx, 0
inc eax
mov dword [rbp + 0x30], eax
cmp eax, r14d
jb 0x14001044e
mov word [r13], bx
xor r13d, r13d
jmp 0x140010617
cmp r14d, 0x10
jne 0x140010335
lea rdx, [rbp - 0x18]
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov edi, eax
test eax, eax
js 0x14001066d
movzx r15d, word [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
add r15d, 2
jmp 0x140010617
test r14b, 1
jne 0x140010335
mov eax, r14d
mov bl, r13b
shr eax, 1
mov rcx, r12
je 0x14001050c
cmp word [rcx], r13w
je 0x14001050a
add rcx, 2
add eax, 0xffffffff
jne 0x1400104f9
jmp 0x14001050c
mov bl, 1
mov r15d, r14d
test bl, bl
jne 0x14001051f
lea eax, [r14 + 2]
cmp eax, r14d
jb 0x140010566
mov r15d, eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, r15d
mov edi, r15d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x140010312
mov r8, r14
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_memcpy
test bl, bl
jne 0x14001055e
mov word [rdi + rsi - 2], r13w
mov edi, r13d
jmp 0x140010617
mov edi, 0xc0000095
jmp 0x14001066d
cmp dword [rdx], 6
mov rcx, r12
mov edx, r14d
jne 0x140010586
lea r8, [rbp - 0x20]
call fcn.140010694
jmp 0x140010592
lea r9, [rbp - 0x20]
mov r8d, eax
call fcn.14001849c
mov edi, eax
test eax, eax
js 0x14001064e
mov rbx, qword [rbp - 0x20]
mov eax, dword [rbx + 8]
add eax, 0x10
mov r15d, eax
cmp eax, 0x10
jae 0x1400105b8
mov edi, 0xc000000d
jmp 0x14001064e
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x1400105df
mov edi, 0xc0000017
jmp 0x14001064e
movups xmm0, xmmword [r12 + 4]
mov rdx, qword [rbp - 0x20]
lea rcx, [rax + 0x10]
movdqu xmmword [rax], xmm0
mov r8d, dword [rbx + 8]
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp - 0x20], r13
test edi, edi
js 0x140010631
mov rax, qword [rbp + 0x50]
mov edi, r13d
mov qword [rax], rsi
mov rax, qword [rbp + 0x58]
mov dword [rax], r15d
jmp 0x14001064e
xor r13d, r13d
test rsi, rsi
je 0x14001066d
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rbp - 0x20], r13
je 0x14001066d
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret