Function at 0x100091894
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
shr ecx, 0x18
mov esi, r8d
lea ebp, [r15 + 1]
and ecx, 0xf
mov r13, rdx
sub ecx, ebp
mov qword [rax - 0x48], r15
mov edi, r15d
je 0x100091bfd
sub ecx, ebp
je 0x100091b60
sub ecx, ebp
je 0x100091b2a
sub ecx, ebp
je 0x100091a39
sub ecx, ebp
je 0x1000919f9
sub ecx, ebp
je 0x1000919b8
cmp ecx, ebp
je 0x1000919a7
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r12d, esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, r15
jne 0x100091994
mov edi, 0xc0000017
cmp rbp, r15
je 0x10009194f
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rsp + 0x20], r15
je 0x100091974
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, rsi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x100091cb8
test sil, 7
je 0x100091902
mov edi, 0xc0000024
jmp 0x100091974
lea eax, [rsi - 1]
cmp eax, ebp
ja 0x1000919b1
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r12d, ebp
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, r15
je 0x100091929
cmp byte [r13], r15b
setne al
mov byte [rbp], al
jmp 0x100091cb8
mov r12d, 8
cmp esi, r12d
jne 0x1000919b1
mov rax, qword gs:[0x30]
mov r8, r12
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, r15
je 0x100091929
mov rax, qword [r13]
mov qword [rbp], rax
jmp 0x100091cb8
test sil, 0xf
jne 0x1000919b1
shr esi, 4
mov r12d, r15d
mov ebx, r15d
cmp esi, r15d
jbe 0x100091a98
lea rcx, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ecx, ebx
lea rdx, [rsp + 0x28]
shl rcx, 4
add rcx, r13
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
cmp eax, r15d
mov edi, eax
jl 0x100091974
movzx ecx, word [rsp + 0x28]
lea r12d, [r12 + rcx + 2]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
add ebx, ebp
cmp ebx, esi
jb 0x100091a51
mov rax, qword gs:[0x30]
add r12d, 2
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r8d, r12d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, r15
je 0x100091929
mov r14, rax
test esi, esi
je 0x100091b16
mov ecx, r15d
lea rdx, [rsp + 0x28]
shl rcx, 4
add rcx, r13
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov edi, eax
test eax, eax
js 0x100091b22
movzx eax, word [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, r14
add eax, 2
mov r8d, eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x28]
add r14, rbx
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
inc r15d
cmp r15d, esi
jb 0x100091acb
xor r15d, r15d
mov word [r14], r15w
jmp 0x100091caf
xor r15d, r15d
jmp 0x10009192e
cmp esi, 0x10
jne 0x1000919b1
lea rdx, [rsp + 0x28]
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
cmp eax, r15d
mov edi, eax
jl 0x100091974
movzx r12d, word [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
add r12d, 2
jmp 0x100091caf
test bpl, sil
jne 0x1000919b1
mov eax, esi
mov rcx, rdx
or edx, 0xffffffff
shr eax, 1
mov bl, r15b
je 0x100091b8b
cmp word [rcx], r15w
je 0x100091b88
add rcx, 2
add eax, edx
jne 0x100091b78
jmp 0x100091b8b
mov bl, bpl
mov r12d, esi
cmp bl, r15b
jne 0x100091bb0
lea eax, [rsi + 2]
cmp eax, esi
jb 0x100091b9f
mov r12d, eax
jmp 0x100091ba7
mov r12d, edx
mov edi, 0xc0000095
cmp edi, r15d
jl 0x100091974
mov rax, qword gs:[0x30]
mov r8d, r12d
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r14d, r12d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, r15
je 0x100091929
mov r8, rsi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp bl, r15b
jne 0x100091caf
mov word [r14 + rbp - 2], r15w
jmp 0x100091caf
cmp dword [rdx], 6
mov rcx, r13
mov edx, esi
jne 0x100091c13
lea r8, [rsp + 0x20]
call fcn.100092a00
jmp 0x100091c20
lea r9, [rsp + 0x20]
xor r8d, r8d
call fcn.100092408
cmp eax, r15d
mov edi, eax
jl 0x10009194f
mov rbx, qword [rsp + 0x20]
mov eax, dword [rbx + 8]
add eax, 0x10
mov r12d, eax
cmp eax, 0x10
jae 0x100091c48
mov edi, 0xc000000d
jmp 0x10009194f
mov rax, qword gs:[0x30]
mov r8, r12
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, r15
je 0x100091929
movdqu xmm0, xmmword [r13 + 4]
mov rdx, qword [rsp + 0x20]
lea rcx, [rax + 0x10]
movdqu xmmword [rax], xmm0
mov r8d, dword [rbx + 8]
call sub.msvcrt.dll_memcpy
mov r11, qword gs:[0x30]
mov r8, qword [rsp + 0x20]
mov rcx, qword [r11 + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rsp + 0x20], r15
cmp edi, r15d
jl 0x10009192e
mov rax, qword [rsp + 0x90]
mov edi, r15d
mov qword [rax], rbp
mov rax, qword [rsp + 0x98]
mov dword [rax], r12d
jmp 0x100091974