Function at 0x140002260
Capabilities:
Get file attributes

Disassembly:
test rcx, rcx
je 0x140002559
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
xor edi, edi
mov rbx, rcx
cmp dword [0x1400366d4], edi
mov qword [rbp + 0x77], rdi
je 0x140002548
lea rdx, [rbp + 0x77]
lea ecx, [rdi + 1]
call fcn.14000261c
test eax, eax
jne 0x1400022b8
lea rdx, str.BfspPrintFileOwnerProcess:_Failed_to_acquire_debugprivilege
lea ecx, [rdi + 4]
call fcn.14000b134
jmp 0x140002514
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2000000
mov edx, 0x100080
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14000230a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.BfspPrintFileOwnerProcess:_Failed_to_open_file_Last_Error___x
lea ecx, [r12 + 5]
call fcn.14000b134
jmp 0x140002514
mov esi, 0x400
mov dword [rbp + 0x67], esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000250b
mov r9d, dword [rbp + 0x67]
lea rdx, [rbp - 0x19]
mov r8, rax
mov dword [rsp + 0x20], 0x2f
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x14000236e
mov r8d, eax
lea rdx, str.BfspPrintFileOwnerProcess:_NtQueryInformationFilefailed__Status___x
mov ecx, 4
call fcn.14000b134
jmp 0x1400024f7
cmp dword [r14], edi
lea rax, str.No_process_found_using__s_file.
lea rdx, str.Printing_processes_using__s_file.
mov esi, 4
cmovbe rdx, rax
mov r8, rbx
mov ecx, esi
call fcn.14000b134
mov qword [rbp + 0x6f], rdi
mov rbx, rdi
mov r15d, edi
cmp dword [r14], edi
jbe 0x1400024f7
mov eax, r15d
lea r9, [rbp - 0x29]
mov qword [rbp - 0x21], rdi
lea r8, [rbp - 9]
xorps xmm0, xmm0
mov edx, 0x1000
mov rcx, qword [r14 + rax*8 + 8]
mov qword [rbp - 0x29], rcx
lea rcx, [rbp + 0x6f]
mov dword [rbp - 9], 0x30
mov qword [rbp - 1], rdi
mov dword [rbp + 0xf], edi
mov qword [rbp + 7], rdi
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
test eax, eax
jns 0x140002400
lea rdx, str.BfspPrintFileOwnerProcess:_NtOpenProcess_failed_Status___x
mov r8d, eax
mov ecx, esi
call fcn.14000b134
jmp 0x1400024bc
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
xor r9d, r9d
mov dword [rbp + 0x67], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x1b]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
cmp eax, 0x80000005
je 0x14000243e
cmp eax, 0xc0000023
je 0x14000243e
cmp eax, 0xc0000004
je 0x14000243e
lea rdx, str.BfspPrintFileOwnerProcess:_NtQueryInformationProcessfailed_in_unexpected_manner__Status___x
jmp 0x1400023f1
mov ebx, dword [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000246d
mov r8d, dword [rbp + 0x67]
lea rdx, str.BfspPrintFileOwnerProcess:_Malloc_failed_Size___x
jmp 0x1400023f4
mov r9d, dword [rbp + 0x67]
lea rax, [rbp + 0x67]
mov rcx, qword [rbp + 0x6f]
mov r8, rbx
mov edx, 0x1b
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x14000249c
lea rdx, str.BfspPrintFileOwnerProcess:_NtQueryInformationProcessfailed__Status___x
jmp 0x1400023f1
lea rdx, str.Process_Name___s
mov ecx, esi
cmp word [rbx], di
jbe 0x1400024b0
mov r8, qword [rbx + 8]
jmp 0x1400024b7
lea r8, str.System
call fcn.14000b134
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x1400024cf
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x6f], rdi
test rbx, rbx
je 0x1400024eb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, rdi
inc r15d
cmp r15d, dword [r14]
jb 0x1400023a5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x140002548
cmp dword [rbx], 1
jne 0x140002525
mov edi, dword [rbx + 0xc]
test dil, 2
jne 0x140002534
xor edx, edx
xor ecx, ecx
call fcn.14000261c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret