Function at 0x1bb14
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
xor eax, eax
push ebx
push edi
xor ebx, ebx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
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 word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
mov edi, 0x80
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call fcn.0001afda
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1bd30
push esi
mov esi, 0x6664656c
push esi
push 0x20
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1bc45
push 0x2e
push 0x20
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, ebx
jge 0x1bbc5
cmp eax, 0x80000005
je 0x1bbc5
cmp eax, 0xc0000004
jne 0x1bc45
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ebx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push esi
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1bc45
push 0x2e
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1bc45
mov eax, 0x400
push esi
mov ecx, eax
push eax
push 1
mov word [ebp - 0x26], cx
mov word [ebp - 0x28], cx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1bd2f
movzx ecx, word [ebp - 0x28]
push ecx
push ebx
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.0001b1f0
test eax, eax
jge 0x1bc51
mov dword [ebp - 4], 0xc0000001
jmp 0x1bd2f
mov esi, dword [ebp - 8]
add esi, 8
jmp 0x1bcc4
push dword [esi + 0x10]
lea eax, [esi + 0x14]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.0001ba66
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 4], ebx
jl 0x1bd2c
cmp dword [ebp - 0xc], ebx
je 0x1bd2c
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1bca6
push ebx
push dword [ebp - 0xc]
call fcn.0001b9b2
push 0x6664656c
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
inc dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
jae 0x1bd2c
add esi, dword [esi]
mov eax, dword [esi + 8]
push 8
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
pop eax
push 8
mov word [ebp - 0x1e], ax
pop eax
push ebx
push ebx
mov word [ebp - 0x20], ax
push 0x2000
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push 3
mov dword [ebp - 0x4c], eax
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], eax
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x44], 0x200
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jge 0x1bc59
mov dword [ebp - 4], ebx
pop esi
cmp dword [ebp - 0x10], ebx
je 0x1bd3e
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 0x24], ebx
je 0x1bd4d
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 8], ebx
je 0x1bd5c
push ebx
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8