Function at 0x11f70
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov dword [rsp + 0xd4], 0x10000
mov dword [rsp + 0x84], 0
movsxd rdx, dword [rsp + 0xd4]
mov r8d, 0x4d4d4354
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x108], 0
mov dword [rsp + 0x80], 0
mov byte [rsp + 0xf0], 0
mov qword [rsp + 0x70], 0xffffffffffffffff
cmp qword [rsp + 0xf8], 0
je 0x12007
mov eax, dword [rsp + 0xd4]
cmp dword [rsp + 0x130], eax
jg 0x12007
cmp dword [rsp + 0x130], 1
jge 0x12013
mov rax, 0xffffffffffffffff
jmp 0x1230b
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x240
lea rax, [rsp + 0x60]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x820
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xa0]
mov edx, 0x80100000
lea rcx, [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jge 0x120e7
mov rax, 0xffffffffffffffff
jmp 0x1230b
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jge 0x1213e
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, 0xffffffffffffffff
jmp 0x1230b
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x108], rax
mov ecx, dword [rsp + 0x130]
mov eax, dword [rsp + 0xd4]
sub eax, ecx
add eax, 1
mov dword [rsp + 0x100], eax
movsxd rcx, dword [rsp + 0x100]
mov rax, qword [rsp + 0x108]
sub rax, rcx
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0
jge 0x121a2
mov qword [rsp + 0x108], 0
mov byte [rsp + 0xf0], 1
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x84], eax
movsxd rdx, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x108]
mov rax, qword [rsp + 0x90]
sub rax, rcx
cmp rdx, rax
jle 0x121ea
mov rcx, qword [rsp + 0x108]
mov rax, qword [rsp + 0x90]
sub rax, rcx
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jge 0x1225b
jmp 0x122e5
mov ecx, dword [rsp + 0x130]
mov eax, dword [rsp + 0x84]
sub eax, ecx
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jle 0x122d5
movsxd r8, dword [rsp + 0x130]
movsxd rax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rdx, qword [rsp + 0x128]
call fcn.00013790
test eax, eax
jne 0x122c2
movsxd rcx, dword [rsp + 0x80]
mov rax, qword [rsp + 0x108]
add rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x122e5
mov eax, dword [rsp + 0x80]
sub eax, 1
mov dword [rsp + 0x80], eax
jmp 0x12272
movzx eax, byte [rsp + 0xf0]
test eax, eax
je 0x12168
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x4d4d4354
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x70]
add rsp, 0x118
ret