Function at 0x7d704930
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 0x7d70495b
push 0xc0000008
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7d704bf8
mov ecx, dword [ebp + 0x14]
and ecx, 0x7fb7
je 0x7d704978
push 0xc000000d
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7d704bf8
mov edx, dword [ebp + 0x14]
and edx, 0x20000000
je 0x7d70498c
mov dword [ebp - 0xc], 8
jmp 0x7d704993
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 0x7d7049b0
mov dword [ebp - 0x10], 2
jmp 0x7d7049b7
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 0x7d7049d3
mov dword [ebp - 0x14], 0
jmp 0x7d7049da
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 0x7d7049f7
mov dword [ebp - 0x18], 4
jmp 0x7d7049fe
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 0x7d704a1b
mov dword [ebp - 0x1c], 0x800
jmp 0x7d704a22
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 0x7d704a3e
mov dword [ebp - 0x20], 0x4000
jmp 0x7d704a45
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 0x7d704a62
mov dword [ebp - 0x24], 0x200000
jmp 0x7d704a69
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 0x7d704a86
mov dword [ebp - 0x28], 0x400000
jmp 0x7d704a8d
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 0x7d704ab8
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 0x7d724678
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 0x7d704af7
mov dword [ebp - 0x2c], 0
jmp 0x7d704afe
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 0x7d704b85
mov edx, dword [ebp - 8]
and edx, 0xffefffff
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0x40000
je 0x7d704b56
mov byte [ebp - 0x4c], 1
mov ecx, dword [ebp - 8]
and ecx, 0xfffbffff
mov dword [ebp - 8], ecx
jmp 0x7d704b5a
mov byte [ebp - 0x4c], 0
mov edx, dword [ebp - 8]
and edx, 0x80000
je 0x7d704b76
mov byte [ebp - 0x4b], 1
mov eax, dword [ebp - 8]
and eax, 0xfff7ffff
mov dword [ebp - 8], eax
jmp 0x7d704b7a
mov byte [ebp - 0x4b], 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov dword [ebp - 0x50], ecx
jmp 0x7d704b94
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 0x7d704bee
mov ecx, dword [ebp - 0x30]
push ecx
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
jmp 0x7d704bf8
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret 0x10