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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor eax, eax
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.00018aa2
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x1932c
mov dword [ebp + 8], 0xc0000001
jmp 0x1947c
push eax
push 0x800
push ebx
push ebx
push ebx
push ebx
push 0x60
push 1
push 3
mov dword [ebp - 0x28], edi
mov edi, 0x80
push edi
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x80100000
lea eax, [ebp - 8]
mov esi, 0x240
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1947c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
xor eax, eax
cmp byte [ebp + 0x10], bl
push ebx
sete al
push ebx
push 0x60
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
dec eax
and eax, 3
inc eax
inc eax
push eax
push ebx
push edi
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x40100000
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1947c
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov eax, 0x100000
mov esi, 0x6c696266
push esi
push eax
push 1
mov dword [ebp + 0x10], eax
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x19406
mov eax, 0x1000
push esi
push eax
push 1
mov dword [ebp + 0x10], eax
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1947c
push 5
push 0x18
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1947c
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
jne 0x1942f
mov dword [ebp + 8], ebx
jmp 0x1947c
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwReadFile]
jmp 0x19463
cmp dword [ebp - 0x14], ebx
je 0x1947c
push ebx
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1947c
cmp dword [ebp - 0x14], edi
jb 0x1947c
push ebx
push ebx
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
jge 0x1943a
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 8], ebx
je 0x1948c
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x19496
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x194a3
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 4], ebx
je 0x194b2
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc