Function at 0x18c9c
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x224a8]
sub esp, 0x7c
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x18f40
mov edi, dword [eax + 0x28]
push 0x20000
call fcn.000153de
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x18cd4
mov eax, 0xc000009a
jmp 0x18f45
mov eax, dword [ebp + 8]
push dword [0x224a8]
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x18d0a
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
push dword [edi + 8]
mov ebx, dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
push 0x800
push esi
push esi
push esi
push esi
push 0x60
push 1
push 1
push 0x80
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
call ebx
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x18d52
push dword [ebp - 8]
call fcn.000153f8
mov eax, dword [ebp + 8]
jmp 0x18f45
mov eax, dword [ebp + 0xc]
push dword [0x224a8]
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x18d88
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
push dword [edi + 8]
lea eax, [ebp - 0x14]
push 0x800
push esi
push esi
push esi
push esi
push 0x60
push 5
push 3
push 0x80
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
push 0xc0000000
lea eax, [ebp - 0xc]
push eax
call ebx
mov edi, eax
cmp edi, esi
jge 0x18dd1
push dword [ebp - 8]
call fcn.000153f8
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
jmp 0x18f45
push 5
push 0x18
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
push esi
push 1
push dword [ebp - 4]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp - 0x14], esi
jge 0x18e1c
push dword [ebp - 8]
call fcn.000153f8
push dword [ebp - 4]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x14]
jmp 0x18f45
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
or eax, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
je 0x18ec6
mov ebx, 0x20000
push ebx
push esi
push dword [ebp - 8]
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [ebp - 0x18], esi
jg 0x18e57
jl 0x18e54
cmp dword [ebp - 0x1c], ebx
jae 0x18e57
mov ebx, dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push esi
push 1
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x14], esi
jl 0x18dfc
push esi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push esi
push 1
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp - 0x14], esi
jl 0x18dfc
add dword [ebp - 0x24], ebx
adc dword [ebp - 0x20], esi
sub dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
sbb dword [ebp - 0x18], esi
or eax, dword [ebp - 0x18]
jne 0x18e36
push 4
push 0x28
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
push esi
push 1
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x14], esi
jl 0x18f23
or dword [ebp - 0x5c], 6
mov eax, 0xcfddc800
push 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x74], eax
push 0x28
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x1c126e1
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x70], ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push dword [ebp - 8]
call fcn.000153f8
push dword [ebp - 4]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0xc]
call esi
jmp 0x18d4a
mov eax, 0xc000000e
pop edi
pop esi
pop ebx
leave
ret 8