Function at 0x1e996
Capabilities:
Get file attributes

Disassembly:
push 0x258
push 0x2d068
call fcn.00027774
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x238], esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x234], eax
xor edi, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push edi
lea eax, [ebp - 0x222]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x240], edi
xor eax, eax
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
and dword [ebp - 0x268], eax
lea edi, [ebp - 0x264]
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
and dword [ebp - 0x22c], 0
cmp byte [0x34b88], 0
je 0x1ec40
test byte [0x34b2c], 0x10
je 0x1ec40
mov edi, dword [ebp + 0x18]
cmp edi, 0xd
je 0x1ea42
cmp edi, 0xa
je 0x1ea42
cmp edi, 0xb
je 0x1ea42
cmp edi, 0x13
jne 0x1ec40
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
test al, al
je 0x1ec40
test ebx, ebx
je 0x1ec40
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [ebp - 0x230], eax
push 0
push 6
push eax
call fcn.000182e2
test al, al
jne 0x1ec40
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push dword [eax]
push ebx
call fcn.00012824
test eax, eax
jl 0x1ec40
push 5
push 0x18
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x1ec40
cmp byte [ebp - 0x254], 1
je 0x1ec40
push 0x103
lea eax, [ebp - 0x224]
push eax
push ebx
call fcn.000174d4
movzx eax, al
mov dword [ebp - 0x228], eax
test eax, eax
je 0x1ec40
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.0001fcba
lea eax, [ebp - 0x224]
push eax
call fcn.0001fb1e
pop ecx
lea eax, [ebp + eax*2 - 0x226]
push 0x5c
pop ecx
cmp cx, word [eax]
jne 0x1eb1b
xor ecx, ecx
mov word [eax], cx
and dword [ebp - 4], 0
mov dword [ebp - 0x250], 4
mov dword [ebp - 0x24c], edi
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
push eax
push 0
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.0001e6f0
mov dword [ebp - 0x228], eax
push 0xfffffffffffffffe
pop ebx
mov dword [ebp - 4], ebx
jmp 0x1eb7c
cmp dword [ebp - 0x228], 0
jne 0x1ec40
cmp edi, 0xa
jne 0x1ec40
test esi, esi
je 0x1ec40
mov dword [ebp - 4], 1
push 4
push 0x10
push esi
call fcn.000129ce
mov eax, dword [esi + 8]
test eax, eax
je 0x1ec26
lea edi, [esi + 0xc]
push 2
push eax
push edi
call fcn.000129ce
push dword [ebp - 0x22c]
call fcn.0001d4b0
test al, al
je 0x1ec01
push 0x103
lea eax, [ebp - 0x224]
push eax
call fcn.0001d230
movzx eax, al
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x1ec26
mov eax, dword [esi + 8]
shr eax, 1
push eax
push edi
call fcn.0001dd9a
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x1ec26
mov eax, dword [esi + 8]
shr eax, 1
push eax
push edi
call fcn.0001fcba
push dword [ebp - 0x234]
mov eax, dword [esi + 8]
shr eax, 1
push eax
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.0001d502
mov dword [ebp - 4], ebx
jmp 0x1ec40
cmp dword [ebp - 0x22c], 0
je 0x1ec5c
push dword [ebp - 0x22c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
and dword [ebp - 0x22c], 0
cmp dword [ebp - 0x228], 0
je 0x1ec82
push 0
push 4
push 0x103
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x230]
push 6
call fcn.0001e56c
mov eax, dword [ebp - 0x228]
call fcn.000277bc
ret 0x18