Function at 0x140021ea0
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov dword [rsp + 0x198], 0
mov dword [rsp + 0x184], 0
mov qword [rsp + 0x190], 0
mov dword [rsp + 0x180], 0
mov qword [rsp + 0x188], 0
mov edx, 0xfa0
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x188], rax
cmp qword [rsp + 0x188], 0
jne 0x140021f0f
xor eax, eax
jmp 0x1400222d8
mov r8d, 0x40
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x20]
call fcn.140023930
movsxd rax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x1c0]
add rcx, rax
mov rax, rcx
mov r8d, 0x108
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023930
movsxd rax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x1c0]
lea rax, [rcx + rax + 0x108]
mov qword [rsp + 0x190], rax
movzx eax, word [rsp + 0x76]
imul rax, rax, 0x28
mov r8d, eax
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x188]
call fcn.140023930
xor edx, edx
mov eax, dword [rsp + 0xc4]
div dword [rsp + 0xa8]
mov eax, edx
test eax, eax
jne 0x140021fb1
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x180], eax
jmp 0x140021fee
xor edx, edx
mov eax, dword [rsp + 0xc4]
div dword [rsp + 0xa8]
mov dword [rsp + 0x180], eax
mov eax, dword [rsp + 0x180]
inc eax
mov dword [rsp + 0x180], eax
mov eax, dword [rsp + 0x180]
imul eax, dword [rsp + 0xa8]
mov dword [rsp + 0x180], eax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x180]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x198], 0
jmp 0x14002202f
mov eax, dword [rsp + 0x198]
inc eax
mov dword [rsp + 0x198], eax
movzx eax, word [rsp + 0x76]
cmp dword [rsp + 0x198], eax
jae 0x1400222a8
mov dword [rsp + 0x180], 0
mov eax, dword [rsp + 0x198]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x188]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x184], eax
mov eax, dword [rsp + 0x198]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x188]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x19c], eax
mov dword [rsp + 0x1a4], 0
mov eax, dword [rsp + 0x19c]
and eax, 0x4000000
test eax, eax
je 0x1400220b5
mov eax, dword [rsp + 0x1a4]
bts eax, 9
mov dword [rsp + 0x1a4], eax
mov eax, dword [rsp + 0x19c]
and eax, 0x20000000
test eax, eax
je 0x140022142
mov eax, dword [rsp + 0x19c]
and eax, 0x40000000
test eax, eax
je 0x14002210b
mov eax, dword [rsp + 0x19c]
and eax, 0x80000000
test eax, eax
je 0x1400220f8
mov eax, dword [rsp + 0x1a4]
or eax, 0x40
mov dword [rsp + 0x1a4], eax
jmp 0x140022109
mov eax, dword [rsp + 0x1a4]
or eax, 0x20
mov dword [rsp + 0x1a4], eax
jmp 0x140022140
mov eax, dword [rsp + 0x19c]
and eax, 0x80000000
test eax, eax
je 0x14002212f
mov eax, dword [rsp + 0x1a4]
bts eax, 7
mov dword [rsp + 0x1a4], eax
jmp 0x140022140
mov eax, dword [rsp + 0x1a4]
or eax, 0x10
mov dword [rsp + 0x1a4], eax
jmp 0x1400221bc
mov eax, dword [rsp + 0x19c]
and eax, 0x40000000
test eax, eax
je 0x140022188
mov eax, dword [rsp + 0x19c]
and eax, 0x80000000
test eax, eax
je 0x140022175
mov eax, dword [rsp + 0x1a4]
or eax, 4
mov dword [rsp + 0x1a4], eax
jmp 0x140022186
mov eax, dword [rsp + 0x1a4]
or eax, 2
mov dword [rsp + 0x1a4], eax
jmp 0x1400221bc
mov eax, dword [rsp + 0x19c]
and eax, 0x80000000
test eax, eax
je 0x1400221ab
mov eax, dword [rsp + 0x1a4]
or eax, 8
mov dword [rsp + 0x1a4], eax
jmp 0x1400221bc
mov eax, dword [rsp + 0x1a4]
or eax, 1
mov dword [rsp + 0x1a4], eax
mov dword [rsp + 0x1a0], 0
mov eax, dword [rsp + 0x184]
lea r9, [rsp + 0x1a0]
mov r8d, dword [rsp + 0x1a4]
mov edx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400221f9
jmp 0x1400222bd
mov eax, dword [rsp + 0x198]
imul rax, rax, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x188]
mov eax, dword [rcx + rax + 8]
div dword [rsp + 0xa8]
mov eax, edx
test eax, eax
jne 0x14002223f
mov eax, dword [rsp + 0x198]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x188]
mov eax, dword [rcx + rax + 8]
mov dword [rsp + 0x180], eax
jmp 0x14002228c
mov eax, dword [rsp + 0x198]
imul rax, rax, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x188]
mov eax, dword [rcx + rax + 8]
div dword [rsp + 0xa8]
mov dword [rsp + 0x180], eax
mov eax, dword [rsp + 0x180]
inc eax
mov dword [rsp + 0x180], eax
mov eax, dword [rsp + 0x180]
imul eax, dword [rsp + 0xa8]
mov dword [rsp + 0x180], eax
mov eax, dword [rsp + 0x180]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x14002201f
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x1400222d8
cmp qword [rsp + 0x188], 0
je 0x1400222d6
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x1b8
ret