Function at 0x140160710
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
jmp 0x140160737
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x140160940
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + rax + 0x10], 0
je 0x140160782
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + rax + 0xc], 0
jne 0x140160784
jmp 0x14016072d
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80000000
test eax, eax
je 0x1401607a6
mov dword [rsp + 0x24], 8
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x40000000
test eax, eax
je 0x1401607c8
mov dword [rsp + 0x24], 2
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80000000
test eax, eax
je 0x140160804
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x40000000
test eax, eax
je 0x140160804
mov dword [rsp + 0x24], 4
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140160826
mov dword [rsp + 0x24], 0x10
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140160862
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80000000
test eax, eax
je 0x140160862
mov dword [rsp + 0x24], 0x80
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x14016089e
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x40000000
test eax, eax
je 0x14016089e
mov dword [rsp + 0x24], 0x20
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x1401608f4
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x80000000
test eax, eax
je 0x1401608f4
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x24]
and eax, 0x40000000
test eax, eax
je 0x1401608f4
mov dword [rsp + 0x24], 0x40
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x10]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14016093b
xor eax, eax
jmp 0x140160945
jmp 0x14016072d
mov eax, 1
add rsp, 0x38
ret