Function at 0x108f760
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 0x108f786
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x108f795
push 3
call fcn.0108d110
or eax, 0xffffffff
jmp 0x108f97f
cmp dword [ebp + 0x18], 1
jb 0x108f7a1
cmp dword [ebp + 0x18], 5
jbe 0x108f7b0
push 0x57
call fcn.0108d110
or eax, 0xffffffff
jmp 0x108f97f
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 0x108f7d7
push 3
call fcn.0108d110
or eax, 0xffffffff
jmp 0x108f97f
mov edx, dword [ebp + 0x1c]
and edx, 0x2000000
je 0x108f7ef
mov eax, dword [ebp - 0xc]
or eax, 0x4000
mov dword [ebp - 0xc], eax
jmp 0x108f7f8
mov ecx, dword [ebp - 0xc]
or ecx, 0x40
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x1c]
and edx, 0x4000000
je 0x108f81a
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 0x108f830
mov eax, dword [ebp - 0xc]
or eax, 0x200000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
and ecx, 0x100000
je 0x108f847
mov edx, dword [ebp - 0xc]
or edx, 0x400000
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
and eax, 0x40000000
je 0x108f85c
mov ecx, dword [ebp - 0xc]
or ecx, 0x20
mov dword [ebp - 0xc], ecx
jmp 0x108f865
mov edx, dword [ebp - 0xc]
or edx, 0x10
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
and eax, 0x10000000
je 0x108f87b
mov ecx, dword [ebp - 0xc]
or ecx, 0x800
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x1c]
and edx, 0x20000000
je 0x108f88f
mov eax, dword [ebp - 0xc]
or eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
and ecx, 0x80000000
je 0x108f8a3
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 0x108f8cd
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x38], edx
jmp 0x108f8d4
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 0x108f908
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + 8]
test eax, eax
je 0x108f908
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 + 0x10053e0]
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 0x108f972
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x28], 0xc0000035
jne 0x108f969
push 0x50
call fcn.0108d110
jmp 0x108f972
mov eax, dword [ebp - 0x28]
push eax
call fcn.0108d130
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