Function at 0x140005d60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0xd0], 0
je 0x140005dad
cmp dword [rsp + 0xd0], 1
je 0x140005dad
lea rcx, [0x14000d5d0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400060e6
cmp dword [rsp + 0xd0], 0
jne 0x140005e36
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xb0], rax
jbe 0x140005e14
cmp qword [rsp + 0xb0], 0xffffffffffffffff
jae 0x140005e14
cmp qword [rsp + 0xc0], 0
jbe 0x140005df5
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0xc0], rax
jb 0x140005e36
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xc0], rax
jbe 0x140005e14
cmp qword [rsp + 0xc0], 0xffffffffffffffff
jb 0x140005e36
mov dword [rsp + 0x40], 0xc0000001
lea rcx, [0x14000d5f0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
jmp 0x1400060e6
cmp dword [rsp + 0xd0], 1
jne 0x140005eba
cmp qword [rsp + 0xb0], 0
jbe 0x140005e9d
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0xb0], rax
jae 0x140005e9d
cmp qword [rsp + 0xc0], 0
jbe 0x140005e7e
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0xc0], rax
jb 0x140005eba
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xc0], rax
jbe 0x140005e9d
cmp qword [rsp + 0xc0], 0xffffffffffffffff
jb 0x140005eba
mov dword [rsp + 0x40], 0xc0000001
lea rcx, [0x14000d630]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
jmp 0x1400060e6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x28], al
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140005f1e
lfence
lea rcx, [0x14000d670]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
jmp 0x1400060e6
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140011b38]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
call qword [0x14000f208]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140005faa
lfence
mov edx, dword [rsp + 0x40]
lea rcx, [0x14000d6a0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x40]
jmp 0x1400060e6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [0x140011b40]
mov qword [rsp + 0x78], rax
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], 0
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rax
mov rax, qword [rsp + 0x80]
call qword [0x14000f208]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14000603a
lfence
mov edx, dword [rsp + 0x40]
lea rcx, [0x14000d6e0]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x28], al
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jne 0x1400060e2
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov rax, qword [0x140011b38]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x90]
call qword [0x14000f208]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x40]
add rsp, 0xa8
ret