Function at 0x1d966
Capabilities:
Find process by pid
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
mov dword [ebp - 0xc], esi
je 0x1dac4
cmp dword [ebp + 0x10], esi
je 0x1dac4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x1dacb
cmp dword [ebp - 0x10], esi
je 0x1dacb
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push 0x200
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x1dacb
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1b
push dword [ebp - 4]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov dword [ebp + 8], eax
cmp eax, 0xc0000004
jne 0x1dacb
push dword [ebp - 8]
push esi
call fcn.0001762c
mov ebx, eax
cmp ebx, esi
je 0x1dacb
push dword [ebp - 8]
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 0x1b
push dword [ebp - 4]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x1da5a
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebx, ebx
jmp 0x1dacb
push 0x18
pop edi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x1dacb
push 5
push edi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x1dacb
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1dacb
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x1dacb
mov dword [ebp + 8], 0xc000000d
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0xc], esi
je 0x1dade
push dword [ebp - 0xc]
call edi
mov dword [ebp - 0xc], esi
cmp ebx, esi
je 0x1daea
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], esi
je 0x1daf7
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
pop edi
cmp ecx, esi
pop esi
pop ebx
je 0x1db07
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp + 8]
leave
ret 0xc