Function at 0x13e56
Capabilities:
Find process by pid

Disassembly:
push 0x5c
push 0x19358
call fcn.000188dc
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
mov word [ebp - 0x44], ax
lea edi, [ebp - 0x42]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x19], bl
xor eax, eax
mov word [ebp - 0x4c], ax
lea edi, [ebp - 0x4a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x142a1
cmp eax, 4
je 0x142a1
cmp eax, 8
je 0x142a1
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x1f0fff
push ebx
push 0x200
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jge 0x13ef3
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [ebp - 0x24], ebx
jmp 0x1421f
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x38]
push ecx
push eax
mov esi, dword [ebp + 0xc]
push esi
push 0x1b
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jge 0x13f2f
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x28], ebx
jmp 0x1421f
push 0x18
pop edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], 0x240
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
push 0x20
push 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
mov esi, 0x80000000
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jge 0x1407b
mov eax, 0x400
mov ecx, eax
mov word [ebp - 0x42], cx
push eax
push ebx
call fcn.000104f0
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x13f94
mov dword [ebp - 0x20], 0xc000009a
jmp 0x1421f
mov ecx, dword [0x18eee]
mov dword [eax], ecx
mov eax, dword [0x18ef2]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x44]
add eax, 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x24]
call fcn.000137da
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
push 0x7e
mov ax, word [ebp - 0x44]
shr ax, 1
movzx eax, ax
push eax
push dword [ebp - 0x40]
call fcn.0001399a
test eax, eax
jne 0x1417e
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], 0x240
lea eax, [ebp - 0x44]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push dword [eax]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x14216
lea eax, [ebp - 0x38]
push eax
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x34]
call dword [sym.imp.ntoskrnl.exe_ObQueryNameString]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14175
push 0x7e
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
shr cx, 1
movzx ecx, cx
push ecx
push dword [eax + 4]
call fcn.0001399a
test eax, eax
je 0x14169
mov byte [ebp - 0x19], 1
mov eax, 0x400
mov ecx, eax
mov word [ebp - 0x42], cx
push eax
push ebx
call fcn.000104f0
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x13f88
mov ecx, dword [0x18eee]
mov dword [eax], ecx
mov eax, dword [0x18ef2]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x44]
add eax, 8
mov word [ebp - 0x44], ax
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push dword [eax]
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_IoQueryFileDosDeviceName]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
movzx ecx, word [ebp - 0x44]
mov eax, dword [ebp + 8]
movzx edx, word [eax]
movzx edi, word [ebp - 0x42]
sub edi, ecx
cmp edi, edx
jge 0x14133
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x13f88
push edx
push dword [eax + 4]
mov eax, dword [ebp - 0x40]
add ecx, eax
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
add ecx, dword [ebp - 0x44]
mov word [ebp - 0x44], cx
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [ebp - 0x30], ebx
push 0x18
pop edi
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x2c], ebx
cmp byte [ebp - 0x19], bl
je 0x1421f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00013b30
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], 0x240
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x1421f
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push dword [eax]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x14216
lea eax, [ebp - 0x38]
push eax
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x34]
call dword [sym.imp.ntoskrnl.exe_ObQueryNameString]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], 0xfffffffe
jmp 0x14248
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x14255
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x28], ebx
je 0x14263
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x14270
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x2c], ebx
je 0x1427e
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x40], ebx
je 0x1428d
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x48], ebx
je 0x1429c
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x20]
jmp 0x142a6
mov eax, 0xc000000d
call fcn.00018921
ret 0xc