Function at 0x1400159c8
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x140023128]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
and dword [rbp - 0x69], 0
xor esi, esi
test rdx, rdx
je 0x140015a11
mov rcx, qword [rdx]
sub rcx, 0x18
call fcn.140002a04
lea rcx, [rax + 0x18]
mov qword [rbp - 0x51], rcx
lea edi, [rsi + 1]
jmp 0x140015a23
lea rdx, [rbp - 0x59]
call fcn.140018aac
nop
mov edi, 2
mov rcx, qword [rax]
mov dword [rbp - 0x69], edi
add rcx, 0xffffffffffffffe8
call fcn.140002a04
add rax, 0x18
mov qword [rbp - 0x61], rax
test dil, 2
je 0x140015a75
and edi, 0xfffffffd
mov dword [rbp - 0x69], edi
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140015a72
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
mov edi, dword [rbp - 0x69]
test dil, 1
je 0x140015aaa
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140015aaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x11], xmm1
movups xmmword [rbp - 1], xmm1
movups xmmword [rbp + 0xf], xmm1
mov qword [rbp + 0x1f], rax
and qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [rax + 1]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140015c46
mov dword [rsp + 0x20], 0x22
mov r9d, 0x38
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140015b5e
mov rcx, qword [rbp - 0x11]
mov qword [rbx + 0x78], rcx
mov rax, qword [rbp - 9]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 1]
mov qword [rbx], rax
mov rax, qword [rbp + 7]
mov qword [rbx + 0x80], rax
mov eax, dword [rbp + 0x1f]
mov dword [rbx + 0x70], eax
mov rax, qword [rbp + 0x17]
jmp 0x140015bf6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rax
mov dword [rsp + 0x20], 4
lea r9d, [rax + 0x28]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x49]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140015c04
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rax
mov dword [rsp + 0x20], 5
lea r9d, [rax + 0x18]
lea r8, [rbp + 0x27]
lea rdx, [rbp - 0x49]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140015c04
mov rax, qword [rbp - 0x39]
mov qword [rbx + 0x78], rax
mov rax, qword [rbp - 0x31]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x29]
mov qword [rbx], rax
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x80], rax
mov eax, dword [rbp - 0x19]
mov dword [rbx + 0x70], eax
mov rax, qword [rbp + 0x2f]
mov qword [rbx + 0x88], rax
mov esi, 1
jmp 0x140015c36
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
cmp dword [0x1400245c4], 0
je 0x140015c36
mov rdx, rbx
mov ecx, 0x23a8
call fcn.140011a8c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140015c75
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x14001d898]
mov eax, esi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140001800
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret