Function at 0x14000cd10
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov rax, qword [0x14001b050]
xor rax, rsp
mov qword [rsp + 0xf0], rax
cmp dword [rsp + 0x138], 0x40
jle 0x14000cd52
mov eax, 0xc0000001
jmp 0x14000d079
mov eax, dword [rsp + 0x128]
mov dword [0x14001e3e8], eax
cmp dword [0x14001e3e8], 0
je 0x14000ce5b
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x240
lea rax, [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov rdx, qword [rsp + 0x90]
lea rcx, [0x140016e40]
call sub.ntoskrnl.exe_DbgPrint
mov qword [0x14001e3e0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x24
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x98]
mov edx, 0x10100005
lea rcx, [0x14001e3e0]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
lea rcx, [0x140016e60]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x138]
mov dword [0x14001b008], eax
mov r8d, dword [0x14001b008]
mov edx, dword [0x14001b008]
lea rcx, [0x14001e3c0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeSemaphore]
lea rcx, [0x14001e380]
call fcn.14000c890
movsxd rax, dword [0x14001b008]
imul rax, rax, 0x30
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14001e368], rax
movsxd rax, dword [0x14001b008]
shl rax, 3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14001e360], rax
movsxd rax, dword [0x14001b008]
imul rax, rax, 0x30
mov qword [rsp + 0x70], rax
mov rdi, qword [0x14001e368]
xor eax, eax
mov rcx, qword [rsp + 0x70]
rep stosb byte [rdi], al
movsxd rax, dword [0x14001b008]
shl rax, 3
mov qword [rsp + 0x78], rax
mov rdi, qword [0x14001e360]
xor eax, eax
mov rcx, qword [rsp + 0x78]
rep stosb byte [rdi], al
cmp qword [0x14001e368], 0
je 0x14000d068
cmp qword [0x14001e360], 0
je 0x14000d068
mov dword [rsp + 0x60], 0
jmp 0x14000cf38
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [0x14001b008]
cmp dword [rsp + 0x60], eax
jge 0x14000cfcb
lfence
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001e368]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001e368]
lea rax, [rcx + rax + 0x18]
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001e368]
mov dword [rcx + rax], 1
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001e368]
lea rax, [rcx + rax + 0x18]
movsxd rcx, dword [rsp + 0x60]
mov rdx, qword [0x14001e360]
mov qword [rdx + rcx*8], rax
jmp 0x14000cf2e
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xe8], eax
mov rax, qword [sym.imp.ntoskrnl.exe_HalDispatchTable]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
lea r8, [0x14001b010]
mov edx, 8
mov ecx, 1
mov rax, qword [rsp + 0x80]
call qword [0x1400193c8]
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
lea rcx, [0x140016e80]
call sub.ntoskrnl.exe_DbgPrint
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [0x14000d440]
call fcn.1400022a0
xor eax, eax
jmp 0x14000d079
lea rcx, [0x140016eb0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc00000a0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140014730
add rsp, 0x100
pop rdi
ret