Function at 0x4a7e40
Capabilities:
Inspect section memory permissions

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4a8620
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov rdx, qword [0x00583cf8]
mov dword [rsp], 0
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 8]
mov dword [rsp + 0x1c], eax
call fcn.004a7640
mov rax, qword [rsp]
mov ecx, dword [rsp + 0x1c]
cmp ecx, 1
jb 0x4a8607
mov qword [rsp + 0x40], rax
mov rdx, qword [0x00583cf8]
mov dword [rsp], 1
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x14]
bt eax, 0xf
setb cl
movzx ecx, cl
mov rbx, rcx
or rcx, 0x10
test eax, 0x800000
cmovne rbx, rcx
mov rcx, rbx
or rbx, 0x20
test eax, 0x2000000
cmovne rcx, rbx
mov rbx, rcx
or rcx, 0x40
test eax, 0x2000000
cmovne rbx, rcx
mov rcx, rbx
bts rbx, 7
test eax, 0x4000000
cmovne rcx, rbx
mov ebx, dword [rsp + 0x10]
mov dword [rsp + 0x3c], ebx
mov rsi, rcx
bts rcx, 8
test ebx, 1
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x3b
test ebx, 0x20
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 9
test ebx, 0x200
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0xa
test ebx, 0x80000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0xc
test ebx, 0x100000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x18
test ebx, 0x2000000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x19
test ebx, 2
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x17
test ebx, 0x800000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x1d
test ebx, 0x40000000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x12
test ebx, 0x20000000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x36
test ebx, 0x2000
cmovne rsi, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, 1
jne 0x4a85fe
bt eax, 0x1c
jae 0x4a85f5
mov edi, dword [rsp + 0x1c]
cmp edi, 4
jae 0x4a85b8
cmp rcx, 2
jne 0x4a800b
bt eax, 0x1c
nop
jae 0x4a800b
cmp edi, 4
jae 0x4a8588
bt ebx, 0x1a
jae 0x4a8026
bt ebx, 0x1b
jae 0x4a8026
bt ebx, 0x1c
nop dword [rax + rax]
jb 0x4a852b
cmp edi, 7
jae 0x4a8202
mov qword [rsp + 0x48], rsi
mov rdx, qword [0x00583cf8]
mov dword [rsp], 0x80000000
mov rax, qword [rdx]
call rax
cmp dword [rsp + 8], 0x80000001
jae 0x4a8068
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rdx, qword [0x00583cf8]
mov dword [rsp], 0x80000001
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x14]
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x10]
mov dword [rsp + 0x38], ecx
call fcn.004a7640
mov rax, qword [rsp + 0x48]
mov rcx, rax
or rax, 0xc00000
mov ebx, dword [rsp + 0x38]
test ebx, 0x20
cmovne rcx, rax
mov rax, rcx
or rcx, 4
mov esi, dword [rsp + 0x34]
test esi, 0x80000000
cmovne rax, rcx
mov rcx, rax
or rax, 8
test esi, 0x40000000
cmovne rcx, rax
mov rax, rcx
or rcx, 0x10
test esi, 0x800000
cmovne rax, rcx
mov rcx, rax
or rax, 0x20
test esi, 0x400000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0xb
test ebx, 0x40
cmovne rax, rcx
mov rcx, rax
or rax, 2
test esi, 0x100000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x35
test esi, 0x8000000
cmovne rax, rcx
cmp qword [rsp], 1
je 0x4a8141
bt eax, 7
jae 0x4a8141
bt ebx, 6
jb 0x4a8141
bts rax, 0x3c
bt eax, 0xd
jae 0x4a816b
mov rcx, rax
bts rax, 0x11
test ebx, 0x800
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x10
test ebx, 0x10000
cmovne rax, rcx
mov qword [rsp + 0x48], rax
call fcn.004a7640
cmp qword [rsp], 1
je 0x4a8186
mov rax, qword [rsp + 0x48]
jmp 0x4a8056
call fcn.004a7420
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
cmp rcx, 6
jne 0x4a81fa
nop word [rax + rax]
cmp rax, 9
jne 0x4a81ea
mov rdx, qword [rsp + 0x48]
mov rbx, rdx
bts rdx, 0x3c
test rbx, 0x80
cmovne rbx, rdx
mov rdx, rbx
bts rbx, 0x3d
test rdx, 0x100
cmovne rdx, rbx
cmp rcx, 6
jne 0x4a81e2
cmp rax, 0x1c
jne 0x4a81e2
bts rdx, 0x3e
mov rax, rdx
jmp 0x4a8056
cmp rax, 0xd
je 0x4a81a6
cmp rax, 0xe
je 0x4a81a6
cmp rcx, 6
mov rdx, qword [rsp + 0x48]
nop
jmp 0x4a81d5
mov qword [rsp + 0x48], rsi
mov rdx, qword [0x00583d00]
mov qword [rsp], 7
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x10]
mov dword [rsp + 0x24], ecx
mov ebx, dword [rsp + 0x14]
mov dword [rsp + 0x20], ebx
mov rdx, qword [0x00583d00]
movabs rsi, 0x100000007
mov qword [rsp], rsi
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0x48]
bt ecx, 0xd
nop word [rax + rax]
jae 0x4a8522
mov ebx, dword [rsp + 0x28]
bt ebx, 5
jae 0x4a8275
bts rcx, 0xe
bt ebx, 3
jae 0x4a8294
mov rsi, rcx
bts rcx, 0x13
or rsi, 0x180000
test ebx, 0x100
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x37
test ebx, 4
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x1b
test ebx, 0x10
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x34
test ebx, 0x200
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x1c
test ebx, 0x800
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x33
test ebx, 0x4000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x1e
test ebx, 0x40000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x1f
test ebx, 0x80000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x20
test ebx, 0x20000000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x39
mov edi, dword [rsp + 0x20]
test edi, 0x4000000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x38
mov r8d, dword [rsp + 0x24]
test r8d, 0x40000000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x3a
test edi, 0x8000000
cmovne rsi, rcx
mov ecx, dword [rsp + 0x3c]
and ecx, 0xc000000
cmp ecx, 0xc000000
jne 0x4a802f
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x68], rsi
mov rdx, qword [0x00583d20]
mov dword [rsp], 0
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 8]
mov ecx, eax
shr eax, 5
and eax, 7
cmp eax, 7
jne 0x4a851a
shr ecx, 1
and ecx, 3
cmp ecx, 3
jne 0x4a851a
mov rax, qword [rsp + 0x68]
mov rcx, rax
bts rax, 0x21
mov ebx, dword [rsp + 0x28]
test ebx, 0x10000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x22
test ebx, 0x20000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x23
test ebx, 0x200000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x24
test ebx, 0x4000000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x25
test ebx, 0x8000000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x26
test ebx, 0x10000000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x27
test ebx, 0x40000000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x28
test ebx, 0x80000000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x29
mov ebx, dword [rsp + 0x24]
test ebx, 2
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x2a
test ebx, 0x40
cmovne rax, rcx
mov rcx, rax
bts rax, 0x2d
test ebx, 0x100
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x2e
test ebx, 0x200
cmovne rax, rcx
mov rcx, rax
bts rax, 0x30
test ebx, 0x400
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x2b
test ebx, 0x800
cmovne rax, rcx
mov rcx, rax
bts rax, 0x2f
test ebx, 0x1000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x2c
test ebx, 0x4000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x32
mov ebx, dword [rsp + 0x20]
test ebx, 0x100
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x31
mov ebx, dword [rsp + 0x2c]
test ebx, 0x20
cmovne rax, rcx
mov rsi, rax
jmp 0x4a802f
mov rax, qword [rsp + 0x68]
nop
jmp 0x4a8512
mov ebx, dword [rsp + 0x28]
jmp 0x4a8275
mov qword [rsp + 0x60], rsi
mov rdx, qword [0x00583d20]
mov dword [rsp], 0
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 8]
and eax, 6
cmp eax, 6
jne 0x4a857d
mov rax, qword [rsp + 0x60]
mov rcx, rax
bts rax, 0xd
or rcx, 0xa000
mov ebx, dword [rsp + 0x3c]
test ebx, 0x1000
cmovne rax, rcx
mov edi, dword [rsp + 0x1c]
mov rsi, rax
jmp 0x4a8026
mov ebx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x60]
jmp 0x4a8571
mov qword [rsp + 0x58], rsi
call fcn.004a7140
mov rsi, qword [rsp + 0x58]
mov rax, rsi
bts rsi, 0x1a
cmp qword [rsp], 1
cmovg rax, rsi
mov ebx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x1c]
mov rsi, rax
jmp 0x4a800b
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x50], rsi
call fcn.004a7140
mov rsi, qword [rsp + 0x50]
mov rax, rsi
bts rsi, 0x1a
cmp qword [rsp], 1
cmovg rax, rsi
mov rcx, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x1c]
mov rsi, rax
mov eax, dword [rsp + 0x30]
jmp 0x4a7ff4
mov edi, dword [rsp + 0x1c]
jmp 0x4a7ff4
mov edi, dword [rsp + 0x1c]
jmp 0x4a7ff4
mov qword [rsp + 0x80], 0
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
call fcn.00463480
jmp fcn.004a7e40