Function at 0x14003df30
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
lea rdx, [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14003e1dc
cmp dword [0x1400393d0], 0
je 0x14003e1b7
mov eax, dword [0x1400393d0]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
cmp dword [0x1400393c0], 0x611
jg 0x14003dff9
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 1
jne 0x14003dfd4
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
bts eax, 0xb
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
jmp 0x14003dff4
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 0
jne 0x14003dff4
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
btr eax, 0xb
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
jmp 0x14003e1b5
cmp dword [0x1400393c0], 0x620
jne 0x14003e02b
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 2
je 0x14003e026
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
movzx ecx, byte [rcx + 4]
mov byte [rax], cl
jmp 0x14003e1b5
cmp dword [0x1400393c0], 0x630
jl 0x14003e1ad
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 0
jne 0x14003e053
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
jmp 0x14003e09c
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 1
jne 0x14003e09c
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x68]
and eax, 0xffffff0f
or eax, 0x60
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
and eax, 0xfffffff8
or eax, 2
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x68]
mov byte [rax], cl
mov rax, qword [rsp + 0x90]
cmp dword [rax + 8], 2
je 0x14003e143
cmp dword [0x1400393d4], 0
je 0x14003e143
cmp dword [0x1400393c0], 0xa03
jl 0x14003e106
mov eax, dword [0x1400393d4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
and eax, 1
shl eax, 8
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
btr ecx, 8
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
jmp 0x14003e143
mov eax, dword [0x1400393d4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
and eax, 1
shl eax, 0xa
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
btr ecx, 0xa
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0xc], 2
je 0x14003e1ab
mov eax, dword [0x1400393d0]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax - 2]
mov qword [rsp + 0x58], rax
mov eax, dword [0x1400393d0]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax - 1]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0xc], 1
jne 0x14003e19b
mov rax, qword [rsp + 0x50]
mov byte [rax], 8
mov rax, qword [rsp + 0x58]
mov byte [rax], 8
jmp 0x14003e1ab
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov rax, qword [rsp + 0x58]
mov byte [rax], 0
jmp 0x14003e1b5
mov dword [rsp + 0x30], 0xc00000bb
jmp 0x14003e1da
lea r9, [0x140046870]
lea r8, [0x140046880]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x30], 0xc0000141
jmp 0x14003e1ff
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x140046870]
lea r8, [0x140046820]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x60], 0
je 0x14003e212
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140021990
add rsp, 0x80
pop rdi
ret