Function at 0x4c7ba0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c82cd
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rdx, qword [0x005f8b38]
mov rcx, qword [rdx]
nop
xor eax, eax
nop
call rcx
mov dword [rsp + 0x24], eax
call fcn.004c74c0
mov ecx, dword [rsp + 0x24]
test ecx, ecx
je 0x4c82c5
mov qword [rsp + 0x28], rax
mov rdx, qword [0x005f8b38]
mov rcx, qword [rdx]
mov eax, 1
call rcx
mov dword [rsp + 0x20], ecx
bt edi, 0xf
setb bl
movzx ebx, bl
mov rsi, rbx
or rbx, 0x10
test edi, 0x800000
cmovne rsi, rbx
mov rbx, rsi
or rsi, 0x20
test edi, 0x2000000
cmovne rbx, rsi
mov rsi, rbx
or rbx, 0x40
test edi, 0x2000000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 7
test edi, 0x4000000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 8
test ecx, 1
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x3b
test ecx, 0x20
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 9
test ecx, 0x200
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0xa
test ecx, 0x80000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0xc
test ecx, 0x100000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x18
test ecx, 0x2000000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0x19
test ecx, 2
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x17
test ecx, 0x800000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0x1d
test ecx, 0x40000000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x12
test ecx, 0x20000000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0x36
test ecx, 0x2000
cmovne rsi, rbx
mov rbx, qword [rsp + 0x28]
cmp rbx, 1
jne 0x4c7d64
bt edi, 0x1c
jae 0x4c7d5d
mov r8d, dword [rsp + 0x24]
nop dword [rax]
cmp r8d, 4
jb 0x4c7d69
mov dword [rsp + 0x1c], edi
mov qword [rsp + 0x30], rsi
call fcn.004c7160
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
bts rcx, 0x1a
cmp rax, 1
cmovg rsi, rcx
mov ecx, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov edi, dword [rsp + 0x1c]
mov r8d, dword [rsp + 0x24]
jmp 0x4c7d69
mov r8d, dword [rsp + 0x24]
jmp 0x4c7d69
mov r8d, dword [rsp + 0x24]
cmp rbx, 2
jne 0x4c7da8
bt edi, 0x1c
jae 0x4c7da8
cmp r8d, 4
jb 0x4c7da8
mov qword [rsp + 0x58], rsi
call fcn.004c7160
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
bts rcx, 0x1a
cmp rax, 1
cmovg rsi, rcx
mov ecx, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
bt ecx, 0x1a
jae 0x4c7e11
bt ecx, 0x1b
jae 0x4c7e11
bt ecx, 0x1c
jae 0x4c7e11
mov qword [rsp + 0x50], rsi
mov rdx, qword [0x005f8b48]
mov rcx, qword [rdx]
xor eax, eax
call rcx
and eax, 6
cmp eax, 6
jne 0x4c7df9
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
bts rcx, 0xd
or rsi, 0xa000
mov edi, dword [rsp + 0x20]
test edi, 0x1000
cmovne rcx, rsi
jmp 0x4c7e02
mov edi, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov rsi, rcx
mov ecx, edi
cmp r8d, 7
jb 0x4c812c
mov qword [rsp + 0x48], rsi
mov rdx, qword [0x005f8b40]
mov rcx, qword [rdx]
mov eax, 7
xor ebx, ebx
call rcx
mov dword [rsp + 0x14], ebx
mov dword [rsp + 0x10], ecx
mov dword [rsp + 0xc], edi
mov rdx, qword [0x005f8b40]
mov rsi, qword [rdx]
mov eax, 7
mov ebx, 1
call rsi
mov rcx, qword [rsp + 0x48]
bt ecx, 0xd
nop
jae 0x4c7e73
mov ebx, dword [rsp + 0x14]
bt ebx, 5
jae 0x4c7e77
bts rcx, 0xe
jmp 0x4c7e77
mov ebx, dword [rsp + 0x14]
bt ebx, 3
jae 0x4c7e98
mov rsi, rcx
bts rsi, 0x13
or rcx, 0x180000
test ebx, 0x100
cmovne rsi, rcx
jmp 0x4c7e9b
mov rsi, rcx
mov rcx, rsi
bts rsi, 0x37
mov edi, dword [rsp + 0x20]
and edi, 0xc000000
test ebx, 4
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x1b
test ebx, 0x10
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x34
test ebx, 0x200
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x1c
test ebx, 0x800
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x33
test ebx, 0x4000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x1e
test ebx, 0x40000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x1f
test ebx, 0x80000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x20
test ebx, 0x20000000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x39
mov r8d, dword [rsp + 0xc]
test r8d, 0x4000000
cmovne rcx, rsi
mov rsi, rcx
bts rcx, 0x38
mov r9d, dword [rsp + 0x10]
test r9d, 0x40000000
cmovne rsi, rcx
mov rcx, rsi
bts rsi, 0x3a
test r8d, 0x8000000
cmovne rcx, rsi
nop dword [rax + rax]
cmp edi, 0xc000000
jne 0x4c8129
mov dword [rsp + 0x18], eax
mov qword [rsp + 0x40], rcx
mov rdx, qword [0x005f8b48]
mov rcx, qword [rdx]
xor eax, eax
call rcx
mov ecx, eax
shr eax, 5
and eax, 7
cmp eax, 7
jne 0x4c8124
shr ecx, 1
and ecx, 3
nop dword [rax]
cmp ecx, 3
jne 0x4c8124
mov rcx, qword [rsp + 0x40]
mov rbx, rcx
bts rbx, 0x21
mov esi, dword [rsp + 0x14]
test esi, 0x10000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x22
test esi, 0x20000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x23
test esi, 0x200000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x24
test esi, 0x4000000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x25
test esi, 0x8000000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x26
test esi, 0x10000000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x27
test esi, 0x40000000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x28
test esi, 0x80000000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x29
mov esi, dword [rsp + 0x10]
test esi, 2
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x2a
test esi, 0x40
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x2d
test esi, 0x100
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x2e
test esi, 0x200
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x30
test esi, 0x400
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x2b
test esi, 0x800
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x2f
test esi, 0x1000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x2c
test esi, 0x4000
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x32
mov esi, dword [rsp + 0xc]
test esi, 0x100
cmovne rcx, rbx
mov rbx, rcx
bts rbx, 0x31
mov esi, dword [rsp + 0x18]
test esi, 0x20
cmovne rcx, rbx
jmp 0x4c8129
mov rcx, qword [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x30], rsi
mov rdx, qword [0x005f8b38]
mov rcx, qword [rdx]
mov eax, 0x80000000
call rcx
cmp eax, 0x80000001
jae 0x4c8153
mov rbx, qword [rsp + 0x30]
jmp 0x4c82bc
mov rdx, qword [0x005f8b38]
mov rcx, qword [rdx]
mov eax, 0x80000001
call rcx
mov rbx, qword [rsp + 0x30]
mov rsi, rbx
or rbx, 0xc00000
mov r8d, ecx
and ecx, 0x40
test r8d, 0x20
cmovne rsi, rbx
mov rbx, rsi
or rsi, 4
test edi, 0x80000000
cmovne rbx, rsi
mov rsi, rbx
or rbx, 8
test edi, 0x40000000
cmovne rsi, rbx
mov rbx, rsi
or rsi, 0x10
test edi, 0x800000
cmovne rbx, rsi
mov rsi, rbx
or rbx, 0x20
test edi, 0x400000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0xb
test ecx, ecx
cmovne rbx, rsi
mov rsi, rbx
or rbx, 2
test edi, 0x100000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x35
test edi, 0x8000000
cmovne rbx, rsi
mov rsi, qword [rsp + 0x28]
nop
cmp rsi, 1
je 0x4c8215
bt ebx, 7
jae 0x4c8215
test ecx, ecx
jne 0x4c8215
bts rbx, 0x3c
bt ebx, 0xd
jae 0x4c8247
mov rcx, rbx
bts rcx, 0x11
test r8d, 0x800
cmovne rbx, rcx
mov rcx, rbx
bts rcx, 0x10
test r8d, 0x10000
cmovne rbx, rcx
cmp rsi, 1
jmp 0x4c824b
cmp rsi, 1
jne 0x4c82bc
mov qword [rsp + 0x38], rbx
call fcn.004c7340
cmp rax, 6
jne 0x4c82a7
nop dword [rax]
cmp rbx, 9
je 0x4c8272
cmp rbx, 0xd
je 0x4c8272
cmp rbx, 0xe
jne 0x4c82a3
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
bts rcx, 0x3c
test rdx, 0x80
cmovne rdx, rcx
mov rcx, rdx
bts rdx, 0x3d
test rcx, 0x100
cmovne rcx, rdx
cmp rax, 6
jmp 0x4c82ac
cmp rax, 6
mov rcx, qword [rsp + 0x38]
jne 0x4c82b9
cmp rbx, 0x1c
jne 0x4c82b9
bts rcx, 0x3e
mov rbx, rcx
mov rax, rbx
add rsp, 0x60
pop rbp
ret
xor eax, eax
add rsp, 0x60
pop rbp
ret
call fcn.00462680
jmp fcn.004c7ba0