Function at 0x12380
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
cmp dword [rcx + 0x48], 2
mov rdi, qword [rcx + 0x40]
mov r13, qword [rdx + 0x18]
mov rbp, rdx
mov rsi, rcx
je 0x123b2
mov al, byte [r13 + 8]
mov byte [rdi + 0x28], al
movzx eax, word [r13 + 0xa]
xor ecx, ecx
mov r8d, 0x4f494d46
mov word [rdi + 0x10], ax
movzx eax, word [r13 + 0xa]
mov word [rdi + 0x12], ax
movzx edx, word [r13 + 0xa]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
lea rdx, [r13 + 0xc]
mov qword [rdi + 0x18], rax
movzx r8d, word [r13 + 0xa]
mov rcx, rax
call fcn.00012f60
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x60]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
xor r15d, r15d
cmp eax, r15d
mov ebx, eax
jge 0x1241e
mov rcx, qword [rdi + 0x18]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [rbp + 0x30], ebx
mov eax, ebx
jmp 0x126b4
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x40], 0x868
mov ecx, r15d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x88], 0x40
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r15
mov al, byte [rdi + 0x28]
lea r9, [rbp + 0x30]
lea r8, [rsp + 0x70]
cmp al, r15b
setne cl
neg al
mov eax, 0xc0000000
mov dword [rsp + 0x30], ecx
sbb edx, edx
lea rcx, [rdi + 8]
and edx, eax
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r15
add edx, eax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov r14d, eax
cmp eax, 0xc0000034
je 0x12511
cmp eax, 0xc000000f
je 0x12511
cmp eax, r15d
jl 0x12571
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rdi + 8]
mov r14d, 4
lea r9d, [r14 + 0x24]
lea r8, [rsp + 0xb8]
lea rdx, [rbp + 0x30]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r15d
mov r13d, eax
jge 0x12600
mov rcx, qword [rdi + 0x18]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x125ee
cmp byte [rdi + 0x28], r15b
jne 0x12695
cmp qword [r13], r15
je 0x12695
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], 0x868
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], r15d
lea r9, [rbp + 0x30]
lea r8, [rsp + 0x70]
lea rcx, [rdi + 8]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r15d
mov r14d, eax
jge 0x12590
mov rcx, qword [rdi + 0x18]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, r14d
jmp 0x126b8
cmp qword [rbp + 0x38], 2
jne 0x124c4
mov rax, qword [r13]
lea r8, [rsp + 0x128]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x128], rax
mov rcx, qword [rdi + 8]
mov r9d, 8
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
cmp eax, r15d
mov r13d, eax
jge 0x124c4
mov rcx, qword [rdi + 0x18]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, r13d
jmp 0x126b8
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0xa0]
lea rdx, [rbp + 0x30]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r15d
mov r13d, eax
jl 0x12500
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x120]
lea rdx, [rbp + 0x30]
mov r9d, r14d
mov qword [rdi + 0x20], rax
mov dword [rsp + 0x20], 0x11
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r15d
mov r13d, eax
jl 0x12500
mov eax, dword [rsp + 0x120]
mov dword [rsi + 0x98], eax
cmp byte [rdi + 0x28], r15b
je 0x12682
or dword [rsi + 0x34], 2
jmp 0x12686
and dword [rsi + 0x34], 0xfffffffd
mov byte [rdi], 1
mov dword [rdi + 0x74], r15d
xor eax, eax
mov dword [rbp + 0x30], r15d
jmp 0x126b4
mov rcx, qword [rdi + 0x18]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, 0xc000000f
mov dword [rbp + 0x30], eax
mov qword [rbp + 0x38], r15
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret