Function at 0x190fa
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
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 - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push 1
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [eax], esi
call fcn.00018aa2
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x1914e
mov dword [ebp + 8], 0xc0000001
jmp 0x19258
push eax
push 0x800
push esi
push esi
push esi
push esi
push 0x21
push 1
push 3
push 0x80
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x80100000
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x240
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x19258
push 0x6c696266
mov edi, 0x10000
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x19258
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x191d7
cmp dword [ebp + 0x10], esi
jbe 0x191d7
push dword [ebp + 0x10]
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
push esi
push esi
push esi
push 1
mov dword [ebp - 8], eax
push edi
jmp 0x1923e
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x3c]
add eax, 0x12
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], eax
jb 0x19225
mov dword [ebx], eax
mov eax, dword [edi + 0x38]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 8], eax
push dword [edi + 0x3c]
lea eax, [edi + 0x40]
push eax
lea eax, [ebx + 0x10]
push eax
call sub.ntoskrnl.exe_memmove
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
add esp, 0xc
add ebx, eax
mov ecx, dword [ebp + 0x14]
add dword [ecx], eax
mov eax, dword [edi]
cmp eax, esi
je 0x19234
add edi, eax
jmp 0x191e8
push esi
push esi
push esi
push 1
push 0x10000
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x191e5
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub edi, dword [ebp - 8]
mov eax, dword [eax]
cmp edi, eax
jne 0x19274
cmp eax, esi
je 0x19274
cmp ebx, esi
je 0x19274
sub ebx, dword [ebp - 0x10]
mov dword [ebx], esi
cmp dword [ebp - 0xc], esi
je 0x19282
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x1928f
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 4], esi
je 0x1929e
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp + 8], 0x80000006
jne 0x192c8
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
sub edi, ecx
neg edi
sbb edi, edi
mov eax, 0xc0000023
and edi, eax
mov dword [ebp + 8], edi
cmp edi, eax
jne 0x192c8
add ecx, 0x104
mov dword [edx], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10