Function at 0x1400023e4
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov rax, qword [0x140078140]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r15d, r15d
cmp dword [rcx], 0xc0000043
mov dword [rbp - 0x58], r15d
je 0x14000242c
cmp dword [rcx], 0xc0190001
jne 0x1400027ca
mov eax, dword [rcx + 4]
test eax, eax
je 0x1400027ca
cmp eax, 2
jbe 0x140002474
cmp eax, 3
je 0x1400025cd
cmp eax, 4
je 0x140002474
cmp eax, 5
je 0x140002592
jbe 0x1400027ca
cmp eax, 7
jbe 0x1400025cd
cmp eax, 8
je 0x140002592
cmp eax, 0x11
jne 0x1400027ca
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rdx, [rcx + 0x18]
lea rax, [rbp - 0x20]
mov ecx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2c
call fcn.14004e4bc
test eax, eax
js 0x1400027cc
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400024dd
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
cmp word [rcx], 0x20
jne 0x1400024ce
sub rdx, 2
add rcx, 2
sub rax, 2
jne 0x1400024ba
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x60]
test rcx, rcx
je 0x1400027ca
lea rdx, [rbp]
mov qword [rbp - 0x48], r15
call fcn.14004e2f8
mov ebx, eax
test eax, eax
js 0x1400028d0
lea rax, [rbp]
mov dword [rsp + 0x28], 0x4020
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea r9, [rbp + 0x10]
mov dword [rsp + 0x78], 0x30
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], r15
mov edx, 0x100080
mov dword [rbp - 0x70], 0x40
lea rcx, [rbp - 0x48]
mov dword [rsp + 0x20], 7
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400025d6
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x10], 0x43f
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
lea rax, str.HandleFailure
mov r8d, ebx
mov qword [rbp - 0x18], rax
lea rax, str.NtOpenFile__FileHandle___0x00100000L_____0x0080____ObjAttr__IoStatusBlock__0x00000001__0x00000002__0x00000004__0x00000020__0x00004000_
mov qword [rbp - 8], rax
call fcn.14004f52c
jmp 0x1400028d0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rdx, [rcx + 0x18]
lea rax, [rbp - 0x20]
mov ecx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2c
call fcn.14004e4bc
test eax, eax
js 0x1400027cc
lea rcx, [rbp - 0x20]
jmp 0x1400024eb
add rcx, 0x18
jmp 0x1400024e2
xorps xmm0, xmm0
lea rdx, [rbp - 0x20]
xor eax, eax
mov edi, 0x400
mov ecx, edi
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.140050d64
mov r14, qword [rbp - 0x10]
mov ebx, eax
test eax, eax
js 0x1400028c2
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp + 0x10]
mov r9d, edi
mov dword [rsp + 0x20], 0x2f
mov r8, r14
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140002662
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x30], 0x456
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x40]
lea rax, str.HandleFailure
mov r8d, ebx
mov qword [rbp - 0x38], rax
lea rax, str.NtQueryInformationFile__FileHandle__IoStatusBlock__pInfo__cbInfoBlob__FileProcessIdsUsingFileInformation_
mov qword [rbp - 0x28], rax
call fcn.14004f52c
jmp 0x1400028c2
mov esi, r15d
cmp dword [r14], r15d
jbe 0x1400027a3
xor eax, eax
mov qword [rbp - 0x50], r15
xorps xmm0, xmm0
mov qword [rbp + 0x48], rax
mov eax, esi
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x20]
mov dword [rbp + 0x20], 0x30
mov edx, 0x1000
mov qword [rsp + 0x68], r15
movups xmmword [rbp + 0x28], xmm0
mov rcx, qword [r14 + rax*8 + 8]
mov qword [rsp + 0x60], rcx
lea rcx, [rbp - 0x50]
movups xmmword [rbp + 0x38], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000286b
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
xor edi, edi
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov qword [rbp - 0x30], rdi
xor r9d, r9d
xor r8d, r8d
movups xmmword [rbp - 0x40], xmm0
lea edx, [rdi + 0x1b]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x80000005
je 0x14000270d
cmp eax, 0xc0000023
je 0x14000270d
cmp eax, 0xc0000004
jne 0x1400027f6
mov ecx, dword [rbp - 0x58]
lea rdx, [rbp - 0x40]
call fcn.140050d64
mov rdi, qword [rbp - 0x30]
mov ebx, eax
test eax, eax
js 0x14000285b
mov r9d, dword [rbp - 0x58]
lea rax, [rbp - 0x58]
mov rcx, qword [rbp - 0x50]
mov r8, rdi
mov edx, 0x1b
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140002822
cmp word [rdi], r15w
jbe 0x140002764
mov rcx, rdi
call fcn.140001534
lea rcx, [rbp - 0x40]
call fcn.140050e0c
mov rcx, qword [rbp - 0x50]
xor eax, eax
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002798
mov qword [rbp - 0x50], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
inc esi
cmp esi, dword [r14]
jb 0x14000266e
lea rcx, [rbp - 0x20]
call fcn.140050e0c
mov rcx, qword [rbp - 0x48]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400027ca
mov qword [rbp - 0x48], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140058140
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test ebx, ebx
js 0x1400027fb
int3
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rsp + 0x50], 0x47e
mov qword [rsp + 0x40], rax
lea rax, str.HandleFailure
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r15
jmp 0x14000284e
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rsp + 0x50], 0x489
mov qword [rsp + 0x40], rax
lea rax, str.HandleFailure
mov qword [rsp + 0x48], rax
lea rax, str.NtQueryInformationProcess__Process__ProcessImageFileName__ProcessInfo.Buffer__cbProcessInfo__cbProcessInfo_
mov qword [rsp + 0x58], rax
mov r8d, ebx
lea rcx, [rsp + 0x40]
call fcn.14004f52c
test rdi, rdi
je 0x1400028a4
lea rcx, [rbp - 0x40]
call fcn.140050e0c
jmp 0x1400028a4
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rsp + 0x50], 0x46b
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
lea rax, str.HandleFailure
mov r8d, ebx
mov qword [rsp + 0x48], rax
lea rax, str.NtOpenProcess__Process___0x1000___ProcessObjAttr__ClientId_
mov qword [rsp + 0x58], rax
call fcn.14004f52c
mov rcx, qword [rbp - 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400028c2
mov qword [rbp - 0x50], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test r14, r14
je 0x1400028d0
lea rcx, [rbp - 0x20]
call fcn.140050e0c
mov rcx, qword [rbp - 0x48]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400028ee
mov qword [rbp - 0x48], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400027cc