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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov dword [ebp - 0x260], 0
push 0x194
push 0
lea eax, [ebp - 0x25c]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc0], 0
xor edx, edx
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov byte [ebp - 9], 0
push 0x46576570
push 0x400
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x15ab0
mov dword [ebp - 0x8c], 0xc0000001
jmp 0x15d6e
mov dword [ebp - 0xa8], 0x18
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0x240
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
push 0
push 0
push 0x60
push 1
push 1
push 0x80
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xa8]
push edx
push 0x100001
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x15b7f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ntoskrnl.exe_SeImpersonateClientEx
mov dword [ebp - 0x8c], eax
mov byte [ebp - 9], 1
push 0
push 0
push 0x60
push 1
push 1
push 0x80
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x100001
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x15b7f
jmp 0x15d6e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0x400
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x15bca
jmp 0x15d6e
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
cmp edx, 0x400
jge 0x15c10
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x90]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
mov eax, dword [edx + 0x28]
mov dword [ebp - 4], eax
jmp 0x15c1f
mov dword [ebp - 0x8c], 0xc0000001
jmp 0x15d6e
push 5
push 0x18
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x15c4f
jmp 0x15d6e
mov dword [ebp - 8], 0
jmp 0x15c61
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x64
jge 0x15d0d
mov edx, dword [ebp - 8]
fld qword [edx*8 + 0x1b4d0]
fnstcw word [ebp - 0x262]
movzx eax, word [ebp - 0x262]
or eax, 0xc00
mov dword [ebp - 0x268], eax
fldcw word [ebp - 0x268]
fistp qword [ebp - 0x270]
fldcw word [ebp - 0x262]
mov eax, dword [ebp - 0x270]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call sub.ntoskrnl.exe__allmul
push 0
push 0x64
push edx
push eax
call sub.ntoskrnl.exe__alldiv
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
mov edx, dword [ebp - 8]
lea eax, [ebp + edx*4 - 0x258]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jge 0x15d08
jmp 0x15d0d
jmp 0x15c58
cmp dword [ebp - 8], 0x64
jne 0x15d66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb4]
and edx, 0
mov dword [ebp - 0x25c], ecx
lea eax, [ebp - 0x80]
push eax
call fcn.000176c0
push 0x198
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.000175c0
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00017710
mov dword [ebp - 0x8c], 0
xor edx, edx
jne 0x15a80
movzx eax, byte [ebp - 9]
test eax, eax
je 0x15d7c
call dword [sym.imp.ntoskrnl.exe_PsRevertToSelf]
cmp dword [ebp - 0x88], 0
je 0x15d94
push 0
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x84], 0
je 0x15daa
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x8c]
mov esp, ebp
pop ebp
ret 0xc