Function at 0x140005634
Capabilities:
Get file attributes

Disassembly:
test rcx, rcx
je 0x14000599c
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 [0x14003f73c], edi
mov qword [rbp + 0x77], rdi
je 0x14000598b
lea rdx, [rbp + 0x77]
lea ecx, [rdi + 1]
call fcn.140005a50
test eax, eax
jne 0x14000568c
lea rdx, str.BfspPrintFileOwnerProcess:_Failed_to_acquire_debugprivilege
lea ecx, [rdi + 4]
call fcn.14000f424
jmp 0x14000594b
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]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400056ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
lea rdx, str.BfspPrintFileOwnerProcess:_Failed_to_open_file_Last_Error___x
lea ecx, [r12 + 5]
call fcn.14000f424
jmp 0x14000594b
mov esi, 0x400
mov dword [rbp + 0x67], esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14000593c
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]
nop dword [rax + rax]
test eax, eax
jns 0x140005760
mov r8d, eax
lea rdx, str.BfspPrintFileOwnerProcess:_NtQueryInformationFilefailed__Status___x
mov ecx, 4
call fcn.14000f424
jmp 0x14000591c
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.14000f424
mov qword [rbp + 0x6f], rdi
mov rbx, rdi
mov r15d, edi
cmp dword [r14], edi
jbe 0x14000591c
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]
nop dword [rax + rax]
test eax, eax
jns 0x1400057f8
lea rdx, str.BfspPrintFileOwnerProcess:_NtOpenProcess_failed_Status___x
mov r8d, eax
mov ecx, esi
call fcn.14000f424
jmp 0x1400058cf
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]
nop dword [rax + rax]
cmp eax, 0x80000005
je 0x14000583c
cmp eax, 0xc0000023
je 0x14000583c
cmp eax, 0xc0000004
je 0x14000583c
lea rdx, str.BfspPrintFileOwnerProcess:_NtQueryInformationProcessfailed_in_unexpected_manner__Status___x
jmp 0x1400057e9
mov ebx, dword [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000587a
mov r8d, dword [rbp + 0x67]
lea rdx, str.BfspPrintFileOwnerProcess:_Malloc_failed_Size___x
jmp 0x1400057ec
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]
nop dword [rax + rax]
test eax, eax
jns 0x1400058af
lea rdx, str.BfspPrintFileOwnerProcess:_NtQueryInformationProcessfailed__Status___x
jmp 0x1400057e9
lea rdx, str.Process_Name___s
mov ecx, esi
cmp word [rbx], di
jbe 0x1400058c3
mov r8, qword [rbx + 8]
jmp 0x1400058ca
lea r8, str.System
call fcn.14000f424
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x1400058e8
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [rbp + 0x6f], rdi
test rbx, rbx
je 0x140005910
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, rdi
inc r15d
cmp r15d, dword [r14]
jb 0x140005797
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x14000598b
cmp dword [rbx], 1
jne 0x14000595c
mov edi, dword [rbx + 0xc]
test dil, 2
jne 0x14000596b
xor edx, edx
xor ecx, ecx
call fcn.140005a50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret