Function at 0x140002354
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 - 0x38]
sub rsp, 0x120
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rbp + 0x10], rax
cmp dword [rcx], 0xc0000043
je 0x140002395
cmp dword [rcx], 0xc0190001
jne 0x14000273b
mov eax, dword [rcx + 4]
xor r15d, r15d
test eax, eax
je 0x14000273b
cmp eax, 2
jbe 0x1400023e0
cmp eax, 3
je 0x140002538
cmp eax, 4
je 0x1400023e0
cmp eax, 5
je 0x1400024fd
jbe 0x14000273b
cmp eax, 7
jbe 0x140002538
cmp eax, 8
je 0x1400024fd
cmp eax, 0x11
jne 0x14000273b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, [rcx + 0x18]
lea rax, [rbp - 0x78]
mov ecx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2c
call fcn.140051a64
test eax, eax
js 0x14000273d
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140002449
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
cmp word [rcx], 0x20
jne 0x14000243a
sub rdx, 2
add rcx, 2
sub rax, 2
jne 0x140002426
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdx
lea rcx, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x48], r15
call fcn.140051858
mov ebx, eax
test eax, eax
js 0x140002831
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 0x4020
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
lea r9, [rbp - 0x30]
mov dword [rsp + 0x58], 0x30
lea r8, [rsp + 0x58]
mov qword [rsp + 0x60], r15
mov edx, 0x100080
mov dword [rsp + 0x70], 0x40
lea rcx, [rbp - 0x48]
mov dword [rsp + 0x20], 7
movdqu xmmword [rsp + 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140002547
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x68], 0x441
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x78]
lea rax, str.HandleFailure
mov r8d, ebx
mov qword [rbp - 0x70], rax
lea rax, str.NtOpenFile__FileHandle___0x00100000L_____0x0080____ObjAttr__IoStatusBlock__0x00000001__0x00000002__0x00000004__0x00000020__0x00004000_
mov qword [rbp - 0x60], rax
call fcn.140052a48
jmp 0x140002831
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, [rcx + 0x18]
lea rax, [rbp - 0x78]
mov ecx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2c
call fcn.140051a64
test eax, eax
js 0x14000273d
lea rcx, [rbp - 0x78]
jmp 0x14000244e
add rcx, 0x18
je 0x14000273b
jmp 0x14000244e
xorps xmm0, xmm0
lea rdx, [rbp - 0x78]
xor eax, eax
mov edi, 0x400
mov ecx, edi
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x78], xmm0
call fcn.140054350
mov rsi, qword [rbp - 0x68]
mov ebx, eax
test eax, eax
js 0x140002824
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r9d, edi
mov dword [rsp + 0x20], 0x2f
mov r8, rsi
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400025d3
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x68], 0x458
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x78]
lea rax, str.HandleFailure
mov r8d, ebx
mov qword [rbp - 0x70], rax
lea rax, str.NtQueryInformationFile__FileHandle__IoStatusBlock__pInfo__cbInfoBlob__FileProcessIdsUsingFileInformation_
mov qword [rbp - 0x60], rax
call fcn.140052a48
jmp 0x140002824
mov r14d, r15d
cmp dword [rsi], r15d
jbe 0x140002715
xor eax, eax
mov qword [rbp - 0x50], r15
xorps xmm0, xmm0
mov qword [rbp + 8], rax
mov eax, r14d
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], 0x30
mov edx, 0x1000
mov qword [rsp + 0x48], r15
movups xmmword [rbp - 0x18], xmm0
mov rcx, qword [rsi + rax*8 + 8]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x50]
movups xmmword [rbp - 8], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400027d2
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
xor edi, edi
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov qword [rbp - 0x68], rdi
xor r9d, r9d
xor r8d, r8d
movups xmmword [rbp - 0x78], xmm0
lea edx, [rdi + 0x1b]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x80000005
je 0x14000267f
cmp eax, 0xc0000023
je 0x14000267f
cmp eax, 0xc0000004
jne 0x140002767
mov ecx, dword [rbp - 0x58]
lea rdx, [rbp - 0x78]
call fcn.140054350
mov rdi, qword [rbp - 0x68]
mov ebx, eax
test eax, eax
js 0x1400027c3
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 0x14000278f
cmp word [rdi], r15w
jbe 0x1400026d6
mov rcx, rdi
call fcn.1400014f0
mov rcx, rdi
call fcn.140056488
mov rcx, qword [rbp - 0x50]
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002709
mov qword [rbp - 0x50], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
inc r14d
cmp r14d, dword [rsi]
jb 0x1400025df
mov rcx, rsi
call fcn.140056488
mov rcx, qword [rbp - 0x48]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000273b
mov qword [rbp - 0x48], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14005cab0
lea r11, [rsp + 0x120]
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 0x14000276c
int3
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x68], 0x480
mov qword [rbp - 0x78], rax
lea rax, str.HandleFailure
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], r15
jmp 0x1400027b7
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x68], 0x48b
mov qword [rbp - 0x78], rax
lea rax, str.HandleFailure
mov qword [rbp - 0x70], rax
lea rax, str.NtQueryInformationProcess__Process__ProcessImageFileName__ProcessInfo.Buffer__cbProcessInfo__cbProcessInfo_
mov qword [rbp - 0x60], rax
mov r8d, ebx
lea rcx, [rbp - 0x78]
call fcn.140052a48
test rdi, rdi
je 0x140002806
mov rcx, rdi
call fcn.140056488
jmp 0x140002806
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x68], 0x46d
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x78]
lea rax, str.HandleFailure
mov r8d, ebx
mov qword [rbp - 0x70], rax
lea rax, str.NtOpenProcess__Process___0x1000___ProcessObjAttr__ClientId_
mov qword [rbp - 0x60], rax
call fcn.140052a48
mov rcx, qword [rbp - 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002824
mov qword [rbp - 0x50], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rsi, rsi
je 0x140002831
mov rcx, rsi
call fcn.140056488
mov rcx, qword [rbp - 0x48]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14000284f
mov qword [rbp - 0x48], r15
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000273d