Function at 0x431050
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x4312b5
cmp dword [0x004c6348], 0
je 0x4312ad
mov eax, dword [0x004c6348]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp dword [0x004c6320], 0x611
jg 0x431101
mov rax, qword [rsp + 0x70]
cmp dword [rax + 8], 1
jne 0x4310de
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
or eax, 0x800
mov rcx, qword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x4310fc
mov rax, qword [rsp + 0x70]
cmp dword [rax + 8], 0
jne 0x4310fc
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
and eax, 0xfffff7ff
mov rcx, qword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x4312ab
cmp dword [0x004c6320], 0x620
jne 0x43112d
mov rax, qword [rsp + 0x70]
cmp dword [rax + 8], 2
je 0x431128
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
movzx ecx, byte [rcx + 8]
mov byte [rax], cl
jmp 0x4312ab
cmp dword [0x004c6320], 0x630
jl 0x4312a3
mov rax, qword [rsp + 0x70]
cmp dword [rax + 8], 0
jne 0x431152
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
jmp 0x43119d
mov rax, qword [rsp + 0x70]
cmp dword [rax + 8], 1
jne 0x43119d
mov byte [rsp + 0x38], 0
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 3
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x38]
and eax, 0xffffff0f
or eax, 0x60
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 0xfffffff8
or eax, 2
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x38]
mov byte [rax], cl
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0xc], 2
je 0x43123f
cmp dword [0x004c634c], 0
je 0x43123f
cmp dword [0x004c6320], 0xa03
jl 0x431203
mov eax, dword [0x004c634c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
and eax, 1
shl eax, 8
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
and ecx, 0xfffffeff
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
jmp 0x43123f
mov eax, dword [0x004c634c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
and eax, 1
shl eax, 0xa
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
and ecx, 0xfffffbff
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x10], 2
je 0x4312a1
mov eax, dword [0x004c6348]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax - 2]
mov qword [rsp + 0x58], rax
mov eax, dword [0x004c6348]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax - 1]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x10], 1
jne 0x431291
mov rax, qword [rsp + 0x50]
mov byte [rax], 8
mov rax, qword [rsp + 0x58]
mov byte [rax], 8
jmp 0x4312a1
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov rax, qword [rsp + 0x58]
mov byte [rax], 0
jmp 0x4312ab
mov dword [rsp + 0x28], 0xc00000bb
jmp 0x4312b5
mov dword [rsp + 0x28], 0xc0000141
cmp qword [rsp + 0x20], 0
je 0x4312c7
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov eax, dword [rsp + 0x28]
add rsp, 0x60
pop rdi
ret