Function at 0x10e32
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
push dword [0x161d0]
xor ebx, ebx
and byte [ebp - 1], bl
and byte [ebp - 2], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1103d
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_KeAttachProcess]
movzx edi, word [ebp + 8]
push dword [ebp + 0xc]
lea eax, [ebp - 0x254]
push edi
push 0x10e0a
push eax
call sub.ntoskrnl.exe_swprintf
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x18]
push eax
call esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0001097c
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x10ec9
mov byte [ebp - 1], 1
jmp 0x10fc7
cmp eax, 0xc0000043
jne 0x10fc7
push edi
lea eax, [ebp - 0x254]
push 0x10e22
push eax
call sub.ntoskrnl.exe_swprintf
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x54]
push eax
call esi
lea eax, [ebp - 0x18]
push 0x400
push eax
call fcn.00010930
lea eax, [ebp - 0x54]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
push 0x40
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
pop ebx
lea eax, [ebp - 0x40]
mov edi, 0x80000000
push eax
lea eax, [ebp - 8]
push edi
push eax
mov byte [ebp - 2], 1
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x34], ebx
call esi
test eax, eax
mov dword [ebp + 8], eax
jl 0x1103d
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
test eax, eax
mov dword [ebp + 8], eax
jl 0x1103d
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ecx
call esi
test eax, eax
mov dword [ebp + 8], eax
jl 0x10faa
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x10f52
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea eax, [ebp - 0x18]
push eax
call fcn.000107da
and byte [ebp - 1], 0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1103d
push dword [ebp - 0xc]
call fcn.000106d8
mov edi, eax
test edi, edi
je 0x1103d
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x24], eax
xor eax, eax
cmp dword [edi], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
jbe 0x11037
lea esi, [edi + 0x10]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
sub eax, ecx
je 0x11022
add dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
push 1
push dword [ebp - 0x44]
push ebx
push dword [ebp + 0x10]
call fcn.0001058a
add ebx, 1
adc dword [ebp - 0x44], 0
dec dword [ebp - 0x24]
jne 0x11008
mov eax, dword [esi + 4]
inc dword [ebp + 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
add esi, 0x10
cmp eax, dword [edi]
jb 0x10ff3
push edi
call fcn.00015cd4
xor esi, esi
cmp dword [ebp - 8], esi
je 0x1104d
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 1], 0
je 0x11062
cmp dword [ebp - 0xc], 0xffffffff
je 0x11062
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 2], 0
je 0x11075
cmp dword [ebp - 0x14], esi
je 0x11075
push dword [ebp - 0x14]
call fcn.00015cd4
cmp dword [ebp - 0x10], esi
pop edi
pop esi
pop ebx
je 0x11083
call dword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov eax, dword [ebp + 8]
leave
ret 0xc