Function at 0x140042c20
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov r11, r9
mov ebx, r8d
bt edx, 0xf
jae 0x140042c47
or dword [r9], 1
bt edx, 0x17
jae 0x140042c51
or dword [r9], 2
bt edx, 0x19
jae 0x140042c5b
or dword [r9], 8
bt edx, 0x1a
jae 0x140042c65
or dword [r9], 0x10
test cl, 1
je 0x140042c6e
or dword [r9], 0x20
mov esi, 0x80000
test cl, 2
je 0x140042c7b
or dword [r9], esi
bt ecx, 9
jae 0x140042c85
or dword [r9], 0x40
bt ecx, 0xc
jae 0x140042c90
bts dword [r9], 0xe
test esi, ecx
je 0x140042c99
bts dword [r9], 7
bt ecx, 0x14
jae 0x140042ca8
bts dword [r9], 8
or dword [r9 + 4], esi
bt ecx, 0x17
jae 0x140042cb2
or dword [r9], 4
bt ecx, 0x19
jae 0x140042cbd
bts dword [r9], 0x12
bt ecx, 0x16
jae 0x140042cc9
bts dword [r9 + 4], 0x1d
mov eax, 0x18000000
and ecx, eax
cmp ecx, eax
jne 0x140042d05
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x30]
call fcn.140043d6c
test al, al
jne 0x140042d05
mov ecx, dword [rbp + 0x30]
mov eax, ecx
and eax, 6
cmp al, 6
jne 0x140042d05
and cl, 0xe0
mov dil, 1
cmp cl, 0xe0
sete r10b
bts dword [r11], 9
jmp 0x140042d0b
xor dil, dil
xor r10b, r10b
cmp ebx, 7
jb 0x140042ee9
xor edx, edx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x20]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 7]
call fcn.140043d44
test al, al
jne 0x140042eae
mov ecx, dword [rbp - 0x10]
test cl, 8
je 0x140042d4d
bts dword [r11], 0x10
mov ebx, 0x400
test cl, 0x20
je 0x140042d5f
test dil, dil
je 0x140042d5f
or dword [r11], ebx
mov eax, 0x20000
bt ecx, 8
jae 0x140042d6d
or dword [r11], eax
bt ecx, 0x10
jae 0x140042d7d
test r10b, r10b
je 0x140042d7d
bts dword [r11], 0xf
test eax, ecx
je 0x140042d8b
test r10b, r10b
je 0x140042d8b
bts dword [r11], 0x16
test esi, ecx
je 0x140042d95
bts dword [r11 + 4], 9
mov edx, 0x200000
mov eax, 0x8000000
test edx, ecx
je 0x140042dab
test r10b, r10b
je 0x140042dab
or dword [r11], eax
mov r8d, 0x800000
test r8d, ecx
je 0x140042dbc
bts dword [r11 + 4], 0xe
mov esi, 0x4000000
test esi, ecx
je 0x140042dcf
test r10b, r10b
je 0x140042dcf
bts dword [r11], 0x19
test eax, ecx
je 0x140042ddd
test r10b, r10b
je 0x140042ddd
bts dword [r11], 0x18
mov r9d, 0x10000000
test r9d, ecx
je 0x140042df0
test r10b, r10b
je 0x140042df0
or dword [r11], r8d
bt ecx, 0x1d
jae 0x140042dfc
bts dword [r11 + 8], 0xd
mov r8d, 0x40000000
test r8d, ecx
je 0x140042e0f
test r10b, r10b
je 0x140042e0f
or dword [r11], edx
test ecx, ecx
jns 0x140042e1d
test r10b, r10b
je 0x140042e1d
bts dword [r11], 0x14
mov eax, dword [rbp + 0x20]
test al, 2
je 0x140042e2c
test r10b, r10b
je 0x140042e2c
or dword [r11], esi
test al, 0x40
je 0x140042e3a
test r10b, r10b
je 0x140042e3a
bts dword [r11], 0x1f
bt eax, 8
jae 0x140042e45
or dword [r11 + 4], 1
test ebx, eax
je 0x140042e53
test dil, dil
je 0x140042e53
or dword [r11 + 4], 2
bt eax, 0xb
jae 0x140042e63
test r10b, r10b
je 0x140042e63
or dword [r11 + 4], 4
bt eax, 0xc
jae 0x140042e73
test r10b, r10b
je 0x140042e73
or dword [r11 + 4], 8
bt eax, 0xe
jae 0x140042e81
test r10b, r10b
je 0x140042e81
or dword [r11], r8d
mov eax, dword [rbp + 0x28]
test al, 4
je 0x140042e90
test r10b, r10b
je 0x140042e90
or dword [r11], r9d
test al, 8
je 0x140042e9e
test r10b, r10b
je 0x140042e9e
bts dword [r11], 0x1d
bt eax, 8
jae 0x140042eae
test r10b, r10b
je 0x140042eae
or dword [r11 + 4], 0x20
mov edx, 1
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x20]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 6]
call fcn.140043d44
test al, al
jne 0x140042ee9
test byte [rbp + 0x30], 0x20
je 0x140042ee9
test r10b, r10b
je 0x140042ee9
or dword [r11 + 4], 0x10
lea rax, [rbp + 0x28]
mov ecx, 0x80000000
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x30]
call fcn.140043d1c
mov ecx, 0x80000001
cmp dword [rbp + 0x30], ecx
jb 0x140042f61
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x30]
call fcn.140043d1c
test al, al
jne 0x140042f61
mov eax, dword [rbp + 0x20]
test al, 0x40
je 0x140042f3c
bts dword [r11], 0xb
bt eax, 0xb
jae 0x140042f47
bts dword [r11], 0xd
bt eax, 0x10
jae 0x140042f52
bts dword [r11], 0xc
test dword [rbp + 0x28], 0x20000000
je 0x140042f61
bts dword [r11 + 4], 8
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret