Function at 0x7d7048b0
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 0x7d7048db
push 0xc0000008
call sym.kernel32.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7d704b78
mov ecx, dword [ebp + 0x14]
and ecx, 0x7fb7
je 0x7d7048f8
push 0xc000000d
call sym.kernel32.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7d704b78
mov edx, dword [ebp + 0x14]
and edx, 0x20000000
je 0x7d70490c
mov dword [ebp - 0xc], 8
jmp 0x7d704913
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 0x7d704930
mov dword [ebp - 0x10], 2
jmp 0x7d704937
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 0x7d704953
mov dword [ebp - 0x14], 0
jmp 0x7d70495a
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 0x7d704977
mov dword [ebp - 0x18], 4
jmp 0x7d70497e
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 0x7d70499b
mov dword [ebp - 0x1c], 0x800
jmp 0x7d7049a2
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 0x7d7049be
mov dword [ebp - 0x20], 0x4000
jmp 0x7d7049c5
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 0x7d7049e2
mov dword [ebp - 0x24], 0x200000
jmp 0x7d7049e9
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 0x7d704a06
mov dword [ebp - 0x28], 0x400000
jmp 0x7d704a0d
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 0x7d704a38
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 0x7d726618
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 0x7d704a77
mov dword [ebp - 0x2c], 0
jmp 0x7d704a7e
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 0x7d704b05
mov edx, dword [ebp - 8]
and edx, 0xffefffff
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0x40000
je 0x7d704ad6
mov byte [ebp - 0x4c], 1
mov ecx, dword [ebp - 8]
and ecx, 0xfffbffff
mov dword [ebp - 8], ecx
jmp 0x7d704ada
mov byte [ebp - 0x4c], 0
mov edx, dword [ebp - 8]
and edx, 0x80000
je 0x7d704af6
mov byte [ebp - 0x4b], 1
mov eax, dword [ebp - 8]
and eax, 0xfff7ffff
mov dword [ebp - 8], eax
jmp 0x7d704afa
mov byte [ebp - 0x4b], 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov dword [ebp - 0x50], ecx
jmp 0x7d704b14
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 0x7d704b6e
mov ecx, dword [ebp - 0x30]
push ecx
call sym.kernel32.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7d704b78
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret 0x10