Function at 0x68915800
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
and eax, 0x10000003
je 0x6891582b
push 0xc0000008
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x68915ac8
mov ecx, dword [ebp + 0x14]
and ecx, 0x7fb7
je 0x68915848
push 0xc000000d
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x68915ac8
mov edx, dword [ebp + 0x14]
and edx, 0x20000000
je 0x6891585c
mov dword [ebp - 0xc], 8
jmp 0x68915863
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
or eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x80000000
je 0x68915880
mov dword [ebp - 0x10], 2
jmp 0x68915887
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 4]
or edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
and eax, 0x40000000
je 0x689158a3
mov dword [ebp - 0x14], 0
jmp 0x689158aa
mov dword [ebp - 0x14], 0x20
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
and edx, 0x8000000
je 0x689158c7
mov dword [ebp - 0x18], 4
jmp 0x689158ce
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
or eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x10000000
je 0x689158eb
mov dword [ebp - 0x1c], 0x800
jmp 0x689158f2
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 4]
or edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
and eax, 0x2000000
je 0x6891590e
mov dword [ebp - 0x20], 0x4000
jmp 0x68915915
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
and edx, 0x200000
je 0x68915932
mov dword [ebp - 0x24], 0x200000
jmp 0x68915939
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
or eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x100000
je 0x68915956
mov dword [ebp - 0x28], 0x400000
jmp 0x6891595d
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 4]
or edx, dword [ebp - 0x28]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
and eax, 0x4000000
je 0x68915988
mov ecx, dword [ebp - 4]
or ecx, 0x1000
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
or edx, 0x10000
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
or eax, 0x40
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 1
push 0x689387a4
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
mov dword [ebp - 0x6c], 0x18
mov edx, dword [ebp + 8]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 0x14]
and eax, 0x1000000
je 0x689159c7
mov dword [ebp - 0x2c], 0
jmp 0x689159ce
mov dword [ebp - 0x2c], 0x40
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp + 0x14]
and eax, 0x1f0000
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
and ecx, 0x100000
je 0x68915a55
mov edx, dword [ebp - 8]
and edx, 0xffefffff
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0x40000
je 0x68915a26
mov byte [ebp - 0x4c], 1
mov ecx, dword [ebp - 8]
and ecx, 0xfffbffff
mov dword [ebp - 8], ecx
jmp 0x68915a2a
mov byte [ebp - 0x4c], 0
mov edx, dword [ebp - 8]
and edx, 0x80000
je 0x68915a46
mov byte [ebp - 0x4b], 1
mov eax, dword [ebp - 8]
and eax, 0xfff7ffff
mov dword [ebp - 8], eax
jmp 0x68915a4a
mov byte [ebp - 0x4b], 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov dword [ebp - 0x50], ecx
jmp 0x68915a64
mov byte [ebp - 0x4c], 1
mov dword [ebp - 0x50], 2
mov byte [ebp - 0x4b], 1
mov dword [ebp - 0x54], 0xc
lea edx, [ebp - 0x54]
mov dword [ebp - 0x58], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp + 0xc]
or edx, 0x100000
or edx, 0x80
push edx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntext.dll_NtCreateFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x68915abe
mov ecx, dword [ebp - 0x30]
push ecx
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x68915ac8
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret 0x10