Function at 0x140002c24
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 [0x140085080]
xor rax, rsp
mov qword [rbp + 0x10], rax
cmp dword [rcx], 0xc0000043
je 0x140002c65
cmp dword [rcx], 0xc0190001
jne 0x14000306b
mov edx, dword [rcx + 4]
sub edx, 1
je 0x140002cad
sub edx, 1
je 0x140002cad
sub edx, 1
je 0x140002d89
sub edx, 1
je 0x140002cad
sub edx, 1
je 0x140002d50
sub edx, 1
je 0x140002d89
sub edx, 1
je 0x140002d89
sub edx, 1
je 0x140002d50
cmp edx, 9
jne 0x14000306b
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rcx + 0x18]
lea rax, [rbp - 0x80]
mov ecx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2c
call fcn.140058c88
xor ebx, ebx
test eax, eax
js 0x14000306d
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x140002d11
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
cmp word [rcx], 0x20
jne 0x140002d05
sub rdx, 2
add rcx, 2
sub rax, 2
jne 0x140002cf1
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rdx
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x70], rbx
call fcn.140058a7c
mov edi, eax
test eax, eax
jns 0x140002d9a
mov rcx, qword [rsp + 0x70]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140002d49
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000306d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rcx + 0x18]
lea rax, [rbp - 0x80]
mov ecx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2c
call fcn.140058c88
xor ebx, ebx
test eax, eax
js 0x14000306d
lea rcx, [rbp - 0x80]
jmp 0x140002d15
xor ebx, ebx
add rcx, 0x18
je 0x14000306b
jmp 0x140002d15
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 0x4020
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea r9, [rbp - 0x30]
mov dword [rsp + 0x40], 0x30
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
mov edx, 0x100080
mov dword [rsp + 0x58], 0x40
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], 7
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x140002e3c
lea rcx, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x70], 0x48a
mov qword [rbp - 0x80], rcx
lea rax, str.NtOpenFile__FileHandle___0x00100000L_____0x0080____ObjAttr__IoStatusBlock__0x00000001__0x00000002__0x00000004__0x00000020__0x00004000_
lea rcx, str.HandleFailure
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], rcx
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.140059c64
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jmp 0x140002d36
xorps xmm0, xmm0
lea rdx, [rbp - 0x58]
xor eax, eax
mov esi, 0x400
mov ecx, esi
mov qword [rbp - 0x48], rax
movups xmmword [rbp - 0x58], xmm0
call fcn.14005b59c
mov edi, eax
test eax, eax
jns 0x140002e76
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140002d29
call fcn.14005d7ac
jmp 0x140002d29
mov rdi, qword [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x70]
mov r8, rdi
mov r9d, esi
mov dword [rsp + 0x20], 0x2f
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jns 0x140002f0b
lea rcx, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x70], 0x4a1
mov qword [rbp - 0x80], rcx
lea rax, str.NtQueryInformationFile__FileHandle__IoStatusBlock__pInfo__cbInfoBlob__FileProcessIdsUsingFileInformation_
lea rcx, str.HandleFailure
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], rcx
mov r8d, esi
lea rcx, [rbp - 0x80]
call fcn.140059c64
test rdi, rdi
je 0x140002ee4
mov rcx, rdi
call fcn.14005d7ac
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002f04
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, esi
jmp 0x14000306d
mov r14d, ebx
cmp dword [rdi], ebx
jbe 0x140003043
xor eax, eax
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
mov qword [rbp + 8], rax
mov eax, r14d
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], 0x30
mov edx, 0x1000
mov qword [rbp - 0x50], rbx
movups xmmword [rbp - 0x18], xmm0
mov rcx, qword [rdi + rax*8 + 8]
mov qword [rbp - 0x58], rcx
lea rcx, [rsp + 0x78]
movups xmmword [rbp - 8], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x14000315e
mov rcx, qword [rsp + 0x78]
xor eax, eax
xor r9d, r9d
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x80], xmm0
lea edx, [r9 + 0x1b]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov esi, eax
cmp eax, 0x80000005
je 0x140002fb7
cmp eax, 0xc0000023
je 0x140002fb7
cmp eax, 0xc0000004
jne 0x140003097
mov ecx, dword [rbp - 0x60]
lea rdx, [rbp - 0x80]
call fcn.14005b59c
mov esi, eax
test eax, eax
js 0x14000314e
mov rsi, qword [rbp - 0x70]
lea rax, [rbp - 0x60]
mov r9d, dword [rbp - 0x60]
mov r8, rsi
mov rcx, qword [rsp + 0x78]
mov edx, 0x1b
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov r15d, eax
test eax, eax
js 0x1400030bd
cmp word [rsi], bx
jbe 0x14000300f
mov rcx, rsi
call fcn.140001d44
mov rcx, rsi
call fcn.14005d7ac
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003037
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
inc r14d
cmp r14d, dword [rdi]
jb 0x140002f16
mov rcx, rdi
call fcn.14005d7ac
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000306b
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140063da0
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 esi, esi
js 0x1400030ad
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
mov dword [rbp - 0x70], 0x4c9
mov qword [rbp - 0x68], rbx
jmp 0x140003170
lea rcx, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov dword [rbp - 0x70], 0x4d4
mov qword [rbp - 0x80], rcx
lea rax, str.NtQueryInformationProcess__Process__ProcessImageFileName__ProcessInfo.Buffer__cbProcessInfo__cbProcessInfo_
lea rcx, str.HandleFailure
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], rcx
mov r8d, r15d
lea rcx, [rbp - 0x80]
call fcn.140059c64
test rsi, rsi
je 0x1400030fe
mov rcx, rsi
call fcn.14005d7ac
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000311e
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14005d7ac
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003146
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, r15d
jmp 0x14000306d
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140003192
call fcn.14005d7ac
jmp 0x140003192
lea rax, str.NtOpenProcess__Process___0x1000___ProcessObjAttr__ClientId_
mov dword [rbp - 0x70], 0x4b6
mov qword [rbp - 0x68], rax
lea rcx, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov r8d, esi
mov qword [rbp - 0x80], rcx
lea rcx, str.HandleFailure
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0x80]
call fcn.140059c64
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002edc
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x140002edc