Function at 0x140001308
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140009620]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov qword [rsp + 0x60], rcx
xor r15d, r15d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], r15
mov rdi, rcx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r8, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov r9, rdi
mov qword [rsp + 0x20], r8
mov edi, 0x100
lea r8, [0x140005ec0]
mov edx, edi
mov ebx, eax
call fcn.140001294
lea rcx, [rsi - 1]
inc rcx
cmp byte [rcx], r15b
jne 0x14000137b
lea r9, [rsp + 0x70]
xor r8d, r8d
mov al, byte [r9 + r8]
mov byte [rcx + r8], al
inc r8
test al, al
jne 0x14000138b
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x1400013df
mov r9d, ebx
lea r8, [0x140005f00]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140001294
dec rsi
inc rsi
cmp byte [rsi], r15b
jne 0x1400013be
lea rdx, [rsp + 0x70]
xor ecx, ecx
mov al, byte [rdx + rcx]
mov byte [rsi + rcx], al
inc rcx
test al, al
jne 0x1400013cd
jmp 0x1400015bc
add rcx, 0x200
call fcn.14000128c
mov r14, rax
test rax, rax
je 0x1400015bc
mov rcx, qword [rax]
lea r8, [0x140005f40]
mov r13d, dword [rax + 0x60]
mov r9, rax
mov qword [rsp + 0x28], rcx
mov edx, r13d
shl edx, 2
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], edx
mov rdx, rdi
call fcn.140001294
lea rcx, [rsi - 1]
inc rcx
cmp byte [rcx], r15b
jne 0x140001428
lea r8, [rsp + 0x70]
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140001437
mov r12d, r15d
mov rdx, qword [r14]
mov ebx, r12d
mov eax, dword [r14 + 0x60]
mov rcx, rdx
and ecx, 3
shl ebx, 2
sub rdx, rcx
mov r15d, ebx
shl eax, 2
cmp r15, rax
ja 0x1400015b0
test rcx, rcx
je 0x1400014fd
sub rcx, 1
je 0x1400014d9
cmp rcx, 1
jne 0x1400015b0
mov qword [rsp + 0x50], r15
mov eax, r15d
and eax, 0x3ff
mov ecx, r15d
mov dword [rsp + 0x50], eax
mov rdi, qword [rsp + 0x50]
sub rcx, rdi
shr rcx, 7
mov qword [rsp + 0x50], rcx
mov eax, ecx
and eax, 0xfff
mov dword [rsp + 0x50], eax
mov rbx, qword [rsp + 0x50]
sub rcx, rbx
shr rcx, 9
add rcx, rdx
call fcn.14000128c
lea rcx, [rax + rbx]
call fcn.14000128c
lea rdi, [rax + rdi*4]
jmp 0x140001501
and ebx, 0x3ff
mov rcx, r15
mov eax, ebx
sub rcx, rax
shr rcx, 7
add rcx, rdx
call fcn.14000128c
mov edi, ebx
shl edi, 2
add rdi, rax
jmp 0x140001501
lea rdi, [rdx + rbx*4]
test rdi, rdi
je 0x1400015b0
mov rcx, qword [rdi]
and rcx, 0xfffffffffffffff8
je 0x1400015b0
add rcx, 0x30
call sub.ntoskrnl.exe_ObGetObjectType
test rax, rax
je 0x1400015b0
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400015b0
lea rcx, [0x140005f80]
call sub.ntoskrnl.exe__wcsicmp
test eax, eax
jne 0x1400015b0
mov ebx, dword [rdi + 8]
mov rdx, r15
mov rcx, qword [rsp + 0x60]
mov dword [rdi + 8], 0x1fffff
call fcn.1400010f0
mov r9, qword [rsp + 0x60]
lea r8, [0x140005f90]
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], 0x1fffff
mov edx, 0x100
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call fcn.140001294
lea rcx, [rsi - 1]
inc rcx
cmp byte [rcx], 0
jne 0x140001593
lea r8, [rsp + 0x70]
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x1400015a2
inc r12d
cmp r12d, r13d
jbe 0x140001448
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140005510
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret