Function at 0x1002415d
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.1002407b
pop ecx
test eax, eax
je 0x10024185
push 0x7b
jmp 0x10024528
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.100274dd
pop ecx
pop ecx
test eax, eax
je 0x10024526
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x100241a5
mov dword [ebp + 8], eax
cmp dword [ebp + 0x14], esi
jne 0x1002451f
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jne 0x1002451f
test ebx, 0x401f0000
jne 0x1002451f
mov eax, dword [ebp + 0x18]
dec eax
je 0x10024225
dec eax
je 0x1002421c
dec eax
je 0x10024213
dec eax
je 0x1002420a
dec eax
jne 0x100241e8
test dword [ebp + 0xc], 0x40000000
mov dword [ebp + 0x14], 1
jne 0x1002422c
push 0xc000000d
call fcn.1002713c
push dword [ebp - 4]
call fcn.1002757a
push dword [ebp - 8]
call fcn.1002757a
add esp, 0xc
jmp 0x1002452e
mov dword [ebp + 0x14], 3
jmp 0x1002422c
mov dword [ebp + 0x14], 1
jmp 0x1002422c
mov dword [ebp + 0x14], 5
jmp 0x1002422c
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 0x10024254
movzx ecx, word [ebp - 0x18]
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
mov dword [ebp + 0x1c], eax
je 0x10024257
mov dword [ebp + 0x1c], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.10027154
pop ecx
pop ecx
test eax, eax
jne 0x100241e8
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x10024467
cmp word [ebp - 0x18], 0xe
mov eax, dword [ebp - 0x14]
mov edi, eax
jb 0x1002450b
cmp word [eax + 0xa], 0x3a
jne 0x1002450b
cmp word [eax + 0xc], 0x5c
jne 0x1002450b
push 4
push str.___
push eax
call fcn.10035d20
add esp, 0xc
test eax, eax
jne 0x1002450b
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 0x1002433e
or eax, 0x1000
or dword [ebp + 0xc], 0x10000
mov edx, 0x200000
test edx, ebx
je 0x10024349
or eax, edx
test ebx, 0x100000
je 0x10024356
or eax, 0x400000
xor edx, edx
cmp ecx, edx
jne 0x10024361
or eax, 0x40
jmp 0x10024377
test bl, 0x10
je 0x10024377
test ebx, 0x1000000
je 0x10024377
cmp dword [ebp + 0x14], 2
jne 0x10024377
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.10029129
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 0x10024493
cmp esi, 0xc0009999
je 0x100241e8
push esi
call fcn.1002713c
pop ecx
cmp esi, 0xc0000035
je 0x10024486
cmp esi, 0xc00000ba
je 0x1002448a
cmp esi, 0xc0000033
jne 0x10024430
cmp dword [ebp - 0xc], edi
jne 0x1002446f
push 4
push 0x100509fc
push dword [ebp + 8]
call fcn.10033855
add esp, 0xc
test eax, eax
jne 0x1002446f
push 7
push str._UNC
push dword [ebp + 8]
call fcn.10033855
add esp, 0xc
test eax, eax
je 0x1002446f
add dword [ebp + 8], 8
jmp 0x10024459
cmp esi, 0xc000003a
jne 0x1002446f
cmp dword [ebp - 0xc], edi
jne 0x1002446f
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10027644
pop ecx
pop ecx
test eax, eax
je 0x1002446f
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1002446f
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], 1
xor esi, esi
jmp 0x100241b1
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.1002757a
push dword [ebp - 8]
call fcn.1002757a
pop ecx
pop ecx
jmp 0x1002452e
push 0x50
jmp 0x10024469
cmp dword [ebp + 0x1c], edi
jne 0x10024467
push 5
jmp 0x10024469
cmp dword [ebp + 0x18], 2
jne 0x1002449f
cmp dword [ebp - 0x1c], 3
je 0x100244ab
cmp dword [ebp + 0x18], 4
jne 0x100244b2
cmp dword [ebp - 0x1c], 1
jne 0x100244b2
push 0xb7
jmp 0x100244b3
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x18], 5
jne 0x100244f4
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.10029600
add esp, 0x14
cmp eax, edi
jge 0x100244f4
push eax
call fcn.1002713c
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [ebp - 0x10], 0xffffffff
push dword [ebp - 4]
call fcn.1002757a
push dword [ebp - 8]
call fcn.1002757a
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
jmp 0x10024531
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 0x10024469
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x1c