Function at 0x100242c9
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.100241e7
pop ecx
test eax, eax
je 0x100242f1
push 0x7b
jmp 0x10024694
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.10027649
pop ecx
pop ecx
test eax, eax
je 0x10024692
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x10024311
mov dword [ebp + 8], eax
cmp dword [ebp + 0x14], esi
jne 0x1002468b
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jne 0x1002468b
test ebx, 0x401f0000
jne 0x1002468b
mov eax, dword [ebp + 0x18]
dec eax
je 0x10024391
dec eax
je 0x10024388
dec eax
je 0x1002437f
dec eax
je 0x10024376
dec eax
jne 0x10024354
test dword [ebp + 0xc], 0x40000000
mov dword [ebp + 0x14], 1
jne 0x10024398
push 0xc000000d
call fcn.100272a8
push dword [ebp - 4]
call fcn.100276e6
push dword [ebp - 8]
call fcn.100276e6
add esp, 0xc
jmp 0x1002469a
mov dword [ebp + 0x14], 3
jmp 0x10024398
mov dword [ebp + 0x14], 1
jmp 0x10024398
mov dword [ebp + 0x14], 5
jmp 0x10024398
mov dword [ebp + 0x14], 2
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor eax, eax
inc eax
cmp word [ebp - 0x18], ax
jbe 0x100243c0
movzx ecx, word [ebp - 0x18]
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
mov dword [ebp + 0x1c], eax
je 0x100243c3
mov dword [ebp + 0x1c], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.100272c0
pop ecx
pop ecx
test eax, eax
jne 0x10024354
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x100245d3
cmp word [ebp - 0x18], 0xe
mov eax, dword [ebp - 0x14]
mov edi, eax
jb 0x10024677
cmp word [eax + 0xa], 0x3a
jne 0x10024677
cmp word [eax + 0xc], 0x5c
jne 0x10024677
push 4
push str.___
push eax
call fcn.10035ec0
add esp, 0xc
test eax, eax
jne 0x10024677
mov eax, ebx
shr eax, 0x12
not eax
and eax, 0x40
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov eax, ebx
shr eax, 4
mov edx, 0x8000000
and eax, edx
mov esi, ebx
and esi, 0x20000000
or eax, esi
shr eax, 1
mov esi, ebx
and esi, edx
or eax, esi
shr eax, 8
mov edx, ebx
and edx, 0x10000000
or eax, edx
shr eax, 6
mov ecx, ebx
mov edx, ebx
shr edx, 0x19
and ecx, 0x2000000
or eax, ecx
not edx
shr eax, 0xb
and edx, 0x20
or eax, edx
mov dword [ebp - 0x40], 0x18
test ebx, 0x4000000
je 0x100244aa
or eax, 0x1000
or dword [ebp + 0xc], 0x10000
mov edx, 0x200000
test edx, ebx
je 0x100244b5
or eax, edx
test ebx, 0x100000
je 0x100244c2
or eax, 0x400000
xor edx, edx
cmp ecx, edx
jne 0x100244cd
or eax, 0x40
jmp 0x100244e3
test bl, 0x10
je 0x100244e3
test ebx, 0x1000000
je 0x100244e3
cmp dword [ebp + 0x14], 2
jne 0x100244e3
or eax, 1
push edx
push edx
push eax
push dword [ebp + 0x14]
mov eax, ebx
push dword [ebp + 0x10]
and eax, 0x7fa7
push eax
push edx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x100080
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10029295
add esp, 0x2c
push edi
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, edi
jge 0x100245ff
cmp esi, 0xc0009999
je 0x10024354
push esi
call fcn.100272a8
pop ecx
cmp esi, 0xc0000035
je 0x100245f2
cmp esi, 0xc00000ba
je 0x100245f6
cmp esi, 0xc0000033
jne 0x1002459c
cmp dword [ebp - 0xc], edi
jne 0x100245db
push 4
push 0x100509fc
push dword [ebp + 8]
call fcn.100339c3
add esp, 0xc
test eax, eax
jne 0x100245db
push 7
push str._UNC
push dword [ebp + 8]
call fcn.100339c3
add esp, 0xc
test eax, eax
je 0x100245db
add dword [ebp + 8], 8
jmp 0x100245c5
cmp esi, 0xc000003a
jne 0x100245db
cmp dword [ebp - 0xc], edi
jne 0x100245db
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.100277b0
pop ecx
pop ecx
test eax, eax
je 0x100245db
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x100245db
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], 1
xor esi, esi
jmp 0x1002431d
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.100276e6
push dword [ebp - 8]
call fcn.100276e6
pop ecx
pop ecx
jmp 0x1002469a
push 0x50
jmp 0x100245d5
cmp dword [ebp + 0x1c], edi
jne 0x100245d3
push 5
jmp 0x100245d5
cmp dword [ebp + 0x18], 2
jne 0x1002460b
cmp dword [ebp - 0x1c], 3
je 0x10024617
cmp dword [ebp + 0x18], 4
jne 0x1002461e
cmp dword [ebp - 0x1c], 1
jne 0x1002461e
push 0xb7
jmp 0x1002461f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x18], 5
jne 0x10024660
push 0x13
push 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.1002976c
add esp, 0x14
cmp eax, edi
jge 0x10024660
push eax
call fcn.100272a8
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [ebp - 0x10], 0xffffffff
push dword [ebp - 4]
call fcn.100276e6
push dword [ebp - 8]
call fcn.100276e6
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
jmp 0x1002469d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0x57
jmp 0x100245d5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x1c