Function at 0x14002db98
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a4088]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, qword [rbp + 0x1f0]
mov r12, qword [rbp + 0x200]
mov rsi, rcx
mov ecx, 0x914
mov r13d, r9d
mov dword [rsp + 0x58], r8d
mov r15d, edx
mov edi, 0xd8
call fcn.140029ab4
mov rdx, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
cmp eax, 0x1770
lea ecx, [rdi + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
cmovae edi, ecx
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x70], 0x30
mov dword [rbp - 0x58], 0x240
mov rdx, qword [rdx]
lea r8, [rbp - 0x70]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rcx
call sub.ntoskrnl.exe_ObCreateObject
mov ebx, eax
test eax, eax
js 0x14002df7d
mov rcx, qword [rsp + 0x50]
mov r8d, edi
xor edx, edx
call fcn.1400013f0
mov rax, qword [rsp + 0x50]
mov ecx, 5
mov word [rax], cx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x1f8]
mov word [rax + 2], di
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
xor ecx, ecx
mov dword [rax + 0x50], 2
movzx edx, word [rsi]
mov rax, qword [rsp + 0x50]
mov word [rax + 0x58], dx
movzx edx, word [rsi + 2]
mov rax, qword [rsp + 0x50]
mov word [rax + 0x5a], dx
movzx edx, word [rsi + 2]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdx, qword [rsp + 0x50]
mov ecx, 0x914
mov qword [rdx + 0x60], rax
call fcn.140029ab4
cmp eax, 0x1770
jb 0x14002dcfa
mov rax, qword [rsp + 0x50]
add rax, 0xc0
mov qword [rax], rax
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + 0xc0]
mov qword [rcx + 0xc8], rax
mov rax, qword [rsp + 0x50]
mov ebx, 0xc000009a
mov rcx, qword [rax + 0x60]
test rcx, rcx
je 0x14002df6b
movzx r8d, word [rsi + 2]
mov rdx, qword [rsi + 8]
call fcn.1400010a0
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
lea edx, [r8 + 1]
sub rcx, 0xffffffffffffff80
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
add rcx, 0x98
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rcx, [rbp + 0x80]
xor edx, edx
mov r8d, 0xe0
call fcn.1400013f0
call qword [sym.imp.ntoskrnl.exe_IoGetFileObjectGenericMapping]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x20]
mov r9, rax
mov r8d, r15d
call sub.ntoskrnl.exe_SeCreateAccessState
test eax, eax
jne 0x14002df38
mov edi, dword [rbp + 0x1e8]
mov cl, byte [r14 + 0x4c]
and qword [rsp + 0x68], 0
lea rax, [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x7c], edi
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], r15d
call qword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
xor r15d, r15d
mov rsi, rax
test rax, rax
je 0x14002df40
lea edx, [r15 + 1]
lea rcx, [rbp - 0x40]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rcx, qword [rsi + 0xb8]
lea rax, [0x14002e218]
mov qword [rcx - 0x10], rax
mov qword [rcx - 8], r15
mov byte [rcx - 0x45], 0xe0
or dword [rsi + 0x10], 0x84
mov qword [rsi + 8], r15
mov qword [rsi + 0x18], r15
mov word [rsi + 0x40], r15w
mov byte [rsi + 0x44], r15b
mov qword [rsi + 0x68], r15
lea rax, [rbp - 0x80]
and edi, 0xffffff
lea r9, [rsp + 0x60]
mov qword [rsi + 0x48], rax
lea rax, [rbp - 0x40]
lea r8, [rbp + 0x160]
mov qword [rsi + 0x50], rax
mov rax, qword gs:[0x188]
mov rcx, qword [rsi + 0xb8]
mov qword [rsi + 0x98], rax
mov qword [rsi + 0xa0], r15
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0xc0], rax
mov byte [rcx - 0x48], r15b
mov qword [rcx - 0x20], r14
mov rax, qword [rsp + 0x50]
mov word [rcx - 0x2e], r13w
mov dword [rcx - 0x28], r15d
mov qword [rcx - 0x18], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rcx - 0x40], rax
mov eax, dword [rbp + 0x1e0]
shl eax, 0x18
or edi, eax
mov eax, dword [rsp + 0x58]
mov word [rcx - 0x30], ax
mov dword [rcx - 0x38], edi
mov rcx, r14
call fcn.14002f518
mov rcx, r14
mov dil, al
call fcn.14002f498
mov r15b, al
call fcn.14007a780
mov rcx, qword [rsp + 0x60]
mov r8, rsi
mov rdx, r14
mov r13b, al
call fcn.140077328
lea r9, [rbp + 0x160]
xor r8d, r8d
mov rdx, r14
mov cl, dil
mov ebx, eax
call fcn.14002f61c
cmp ebx, 0x103
jne 0x14002def0
and qword [rsp + 0x20], 0
lea rcx, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rdx, r14
mov cl, r15b
call fcn.14002db24
mov cl, r13b
call fcn.14007a7e8
xor r15d, r15d
cmp dword [rbp - 0x80], r15d
jne 0x14002df3b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
lock inc dword [rcx + 4]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14002df30
lock inc dword [rcx + 0x1c]
mov rax, qword [rsp + 0x50]
mov qword [r12], rax
xor eax, eax
jmp 0x14002df7f
xor r15d, r15d
mov ebx, 0xc0000001
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x60], r15
mov rax, qword [rsp + 0x50]
mov word [rax + 0x58], r15w
mov rax, qword [rsp + 0x50]
jmp 0x14002df6e
xor r15d, r15d
mov qword [rax + 8], r15
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14008c320
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret