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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x21abc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x28]
push edi
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], 0x23da0
cmp byte [0x21ad0], bl
jne 0x1ad25
mov dword [ebp - 0x2c], 0x23b78
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x1ad39
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
push dword [esi + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
push 0x800
push ebx
push ebx
push ebx
push ebx
push 0x68
push 1
push 3
push 0x80
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
push 0xc0100000
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
jl 0x1aeaa
push dword [0x23b68]
call fcn.000161c8
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x1ae9c
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push dword [0x23b68]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jl 0x1ae94
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [0x21abc]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x1ade8
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
push dword [esi + 8]
lea eax, [ebp - 0x14]
push 0x800
push ebx
push ebx
push ebx
push ebx
push 0x60
push 1
push 3
push 0x80
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
push 0xc0000000
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
jl 0x1ae94
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
push 4
push 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [ebp - 0x14], ebx
jl 0x1ae94
mov eax, 0xcfddc800
push 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
push 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x1c126e1
push eax
push dword [ebp - 4]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push dword [ebp - 8]
call fcn.000161e2
cmp dword [ebp - 4], ebx
je 0x1aeaa
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebx
leave
ret