Function at 0x7d702340
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 0x7d70236b
push 0xc0000008
call fcn.7d701e50
or eax, 0xffffffff
jmp 0x7d702608
mov ecx, dword [ebp + 0x14]
and ecx, 0x7fb7
je 0x7d702388
push 0xc000000d
call fcn.7d701e50
or eax, 0xffffffff
jmp 0x7d702608
mov edx, dword [ebp + 0x14]
and edx, 0x20000000
je 0x7d70239c
mov dword [ebp - 0xc], 8
jmp 0x7d7023a3
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 0x7d7023c0
mov dword [ebp - 0x10], 2
jmp 0x7d7023c7
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 0x7d7023e3
mov dword [ebp - 0x14], 0
jmp 0x7d7023ea
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 0x7d702407
mov dword [ebp - 0x18], 4
jmp 0x7d70240e
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 0x7d70242b
mov dword [ebp - 0x1c], 0x800
jmp 0x7d702432
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 0x7d70244e
mov dword [ebp - 0x20], 0x4000
jmp 0x7d702455
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 0x7d702472
mov dword [ebp - 0x24], 0x200000
jmp 0x7d702479
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 0x7d702496
mov dword [ebp - 0x28], 0x400000
jmp 0x7d70249d
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 0x7d7024c8
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 0x7d73f724
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 0x7d702507
mov dword [ebp - 0x2c], 0
jmp 0x7d70250e
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 0x7d702595
mov edx, dword [ebp - 8]
and edx, 0xffefffff
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0x40000
je 0x7d702566
mov byte [ebp - 0x4c], 1
mov ecx, dword [ebp - 8]
and ecx, 0xfffbffff
mov dword [ebp - 8], ecx
jmp 0x7d70256a
mov byte [ebp - 0x4c], 0
mov edx, dword [ebp - 8]
and edx, 0x80000
je 0x7d702586
mov byte [ebp - 0x4b], 1
mov eax, dword [ebp - 8]
and eax, 0xfff7ffff
mov dword [ebp - 8], eax
jmp 0x7d70258a
mov byte [ebp - 0x4b], 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov dword [ebp - 0x50], ecx
jmp 0x7d7025a4
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 0x7d7025fe
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.7d701e50
or eax, 0xffffffff
jmp 0x7d702608
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret 0x10