Function at 0x1091ef0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x1091f16
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1091f25
push 3
call fcn.0108f8a0
or eax, 0xffffffff
jmp 0x109210f
cmp dword [ebp + 0x18], 1
jb 0x1091f31
cmp dword [ebp + 0x18], 5
jbe 0x1091f40
push 0x57
call fcn.0108f8a0
or eax, 0xffffffff
jmp 0x109210f
push 0
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_RtlDosPathNameToNtPathName_U
movzx ecx, al
test ecx, ecx
jne 0x1091f67
push 3
call fcn.0108f8a0
or eax, 0xffffffff
jmp 0x109210f
mov edx, dword [ebp + 0x1c]
and edx, 0x2000000
je 0x1091f7f
mov eax, dword [ebp - 0xc]
or eax, 0x4000
mov dword [ebp - 0xc], eax
jmp 0x1091f88
mov ecx, dword [ebp - 0xc]
or ecx, 0x40
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x1c]
and edx, 0x4000000
je 0x1091faa
mov eax, dword [ebp - 0xc]
or eax, 0x1000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
or ecx, 0x10000
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x1c]
and edx, 0x200000
je 0x1091fc0
mov eax, dword [ebp - 0xc]
or eax, 0x200000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
and ecx, 0x100000
je 0x1091fd7
mov edx, dword [ebp - 0xc]
or edx, 0x400000
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
and eax, 0x40000000
je 0x1091fec
mov ecx, dword [ebp - 0xc]
or ecx, 0x20
mov dword [ebp - 0xc], ecx
jmp 0x1091ff5
mov edx, dword [ebp - 0xc]
or edx, 0x10
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
and eax, 0x10000000
je 0x109200b
mov ecx, dword [ebp - 0xc]
or ecx, 0x800
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x1c]
and edx, 0x20000000
je 0x109201f
mov eax, dword [ebp - 0xc]
or eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
and ecx, 0x80000000
je 0x1092033
mov edx, dword [ebp - 0xc]
or edx, 2
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
and eax, 0x7fb7
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x14], 0
je 0x109205d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x38], edx
jmp 0x1092064
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0x40
cmp dword [ebp + 0x14], 0
je 0x1092098
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + 8]
test eax, eax
je 0x1092098
mov ecx, dword [ebp - 0x18]
or ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
or edx, 0x100080
mov dword [ebp + 0xc], edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx*4 + 0x1005e44]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_ZwCreateFile]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1092102
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x28], 0xc0000035
jne 0x10920f9
push 0x50
call fcn.0108f8a0
jmp 0x1092102
mov eax, dword [ebp - 0x28]
push eax
call fcn.0108f8c0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 0x1c