Function at 0x4312e0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov r8d, 0x20
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x30]
call fcn.004319d0
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 4]
lea rdx, [rsp + 0x50]
mov rcx, rax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jl 0x4315af
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xa8], 0
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_KeStackAttachProcess
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.0042ea10
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jl 0x4315a5
cmp dword [rsp + 0x70], 1
jne 0x4314e4
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x40]
and rax, 0xfffffffffffff000
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
and rax, 0xfff
mov rcx, qword [rsp + 0x48]
lea rax, [rax + rcx + 0xfff]
shr rax, 0xc
shl eax, 0xc
mov eax, eax
mov qword [rsp + 0x48], rax
xor edx, edx
mov ecx, dword [rsp + 0x38]
call fcn.00413280
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.00413470
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb0], rax
jmp 0x431436
mov rax, qword [rsp + 0xb0]
add rax, 0x1000
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0xb0], rax
jae 0x4314df
mov rcx, qword [rsp + 0xb0]
call fcn.00413190
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x38]
and eax, 0xf0
test eax, eax
je 0x431499
mov rax, qword [rsp + 0xb8]
movabs rcx, 0x7fffffffffffffff
mov rax, qword [rax]
and rax, rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
mov eax, dword [rsp + 0x38]
and eax, 0x32
test eax, eax
je 0x4314da
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
and rax, 0xfffffffffffff7ff
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
and rax, 0xfffffffffffffffd
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
jmp 0x431420
jmp 0x4315a5
cmp dword [0x004c6320], 0x630
jg 0x431521
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call fcn.0042f2e0
mov dword [rsp + 0x58], eax
jmp 0x4315a5
cmp dword [0x004c6320], 0xa00
jl 0x4315a5
mov qword [rsp + 0xd0], 0
lea rdx, [0x004350a0]
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x43159d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call qword [rsp + 0xd0]
mov dword [rsp + 0x58], eax
jmp 0x4315a5
mov dword [rsp + 0x58], 0xc0000225
lea rcx, [rsp + 0x78]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
cmp qword [rsp + 0x50], 0
je 0x4315c1
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov eax, dword [rsp + 0x58]
add rsp, 0xe8
ret