Function at 0x140399300
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
test byte [rdx], 1
mov rbx, rdx
mov rdi, rcx
je 0x14039933b
mov eax, dword [rdx + 8]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x140], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x260], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x380], eax
test byte [rdx], 2
je 0x140399349
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x380], eax
test byte [rdx], 4
je 0x140399357
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x140], eax
test byte [rdx], 8
je 0x140399365
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x260], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x500], eax
test dword [rdx], 0x200
je 0x1403993a3
mov eax, dword [rdx + 0x218]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x218]
mov dword [rcx + 0x148], eax
mov eax, dword [rdx + 0x218]
mov dword [rcx + 0x268], eax
mov eax, dword [rdx + 0x218]
mov dword [rcx + 0x388], eax
test dword [rdx], 0x400
je 0x1403993b7
mov eax, dword [rdx + 0x21c]
mov dword [rcx + 0x148], eax
test dword [rdx], 0x800
je 0x1403993cb
mov eax, dword [rdx + 0x220]
mov dword [rcx + 0x268], eax
test dword [rdx], 0x10000000
je 0x1403993dd
mov dword [rcx + 0x3f4], 1
xor ebp, ebp
mov qword [rsp + 0x30], rsi
test byte [rdx], 0x10
mov qword [rsp + 0x38], r14
je 0x140399456
lea rsi, [rcx + 0x4c8]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140399409
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x140399416
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399416
call fcn.1402e0f70
cmp dword [rsi + 0x10], ebp
je 0x140399433
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399430
cmp dword [0x14045b3f8], ebp
jne 0x140399430
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x140399456
cmp byte [rax], bpl
je 0x140399456
lea rdx, [rbx + 0x198]
mov rcx, rsi
call fcn.1400c0d10
test byte [rbx], 0x20
je 0x1403994c3
lea rsi, [rdi + 0x218]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140399476
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x140399483
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399483
call fcn.1402e0f70
cmp dword [rsi + 0x10], ebp
je 0x1403994a0
mov rcx, qword [rsi]
test rcx, rcx
je 0x14039949d
cmp dword [0x14045b3f8], ebp
jne 0x14039949d
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x1b0]
test rax, rax
je 0x1403994c3
cmp byte [rax], bpl
je 0x1403994c3
lea rdx, [rbx + 0x1b0]
mov rcx, rsi
call fcn.1400c0d10
test byte [rbx], 0x40
je 0x140399530
lea rsi, [rdi + 0x338]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1403994e3
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x1403994f0
mov rcx, qword [rsi]
test rcx, rcx
je 0x1403994f0
call fcn.1402e0f70
cmp dword [rsi + 0x10], ebp
je 0x14039950d
mov rcx, qword [rsi]
test rcx, rcx
je 0x14039950a
cmp dword [0x14045b3f8], ebp
jne 0x14039950a
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x1c8]
test rax, rax
je 0x140399530
cmp byte [rax], bpl
je 0x140399530
lea rdx, [rbx + 0x1c8]
mov rcx, rsi
call fcn.1400c0d10
test byte [rbx], 0x80
je 0x14039959d
lea rsi, [rdi + 0x4e0]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140399550
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x14039955d
mov rcx, qword [rsi]
test rcx, rcx
je 0x14039955d
call fcn.1402e0f70
cmp dword [rsi + 0x10], ebp
je 0x14039957a
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399577
cmp dword [0x14045b3f8], ebp
jne 0x140399577
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x1e0]
test rax, rax
je 0x14039959d
cmp byte [rax], bpl
je 0x14039959d
lea rdx, [rbx + 0x1e0]
mov rcx, rsi
call fcn.1400c0d10
mov eax, dword [rbx + 0x210]
mov r14, qword [rsp + 0x38]
mov dword [rdi + 0x4f8], eax
mov eax, dword [rbx]
bt eax, 0x10
jae 0x1403996c5
cmp dword [rbx + 0x20], 3
jne 0x1403996c5
test al, 4
jne 0x1403995ce
mov dword [rdi + 0x140], ebp
test dword [rbx], 0x1000000
je 0x140399609
mov ecx, dword [rbx + 0x154]
call fcn.14004c820
mov rsi, rax
test rax, rax
jne 0x140399636
lea rcx, str.E86:_Buffer__ld_does_not_exist
call qword [case.0x1400407ae.0]
mov edx, dword [rbx + 0x154]
mov rcx, rax
call fcn.1401860c0
jmp 0x1403996c5
mov r8d, 1
test byte [rbx + 4], r8b
je 0x14039961c
mov r8d, dword [rbx + 0x178]
mov rcx, qword [rbx + 0x138]
xor edx, edx
call fcn.140399850
mov rsi, rax
test rax, rax
je 0x1403996c5
test dword [rbx], 0x20000000
je 0x14039964f
mov eax, ebp
cmp dword [rbx + 0x168], eax
sete al
mov dword [rdi + 0x240], eax
cmp dword [rsi + 0x17a8], ebp
jne 0x140399682
cmp dword [rdi + 0x240], ebp
jne 0x140399682
lea rcx, str.E21:_Cannot_make_changes__modifiable_is_off
call qword [case.0x1400407ae.0]
mov rsi, rax
call fcn.140182a30
test eax, eax
jne 0x1403996c5
mov rcx, rsi
call fcn.140182400
jmp 0x1403996c5
mov r8, qword [rsi + 0x80]
lea rdx, str.writing_out_to_buffer__s
mov rcx, rdi
call fcn.1401522a0
mov qword [rdi + 0x230], rsi
mov eax, dword [rsi + 0x98]
mov dword [rdi + 0x238], eax
mov eax, dword [0x14045e9e8]
mov dword [rdi + 0x23c], eax
cmp qword [rsi + 8], rbp
jne 0x1403996c5
mov rcx, rsi
call fcn.140399980
mov eax, dword [rbx]
bt eax, 0x11
jae 0x14039980b
mov ecx, dword [rbx + 0x24]
cmp ecx, 3
je 0x1403996f6
cmp ecx, 4
jne 0x14039980b
bt eax, 0x10
jae 0x14039980b
cmp dword [rbx + 0x20], 3
jne 0x14039980b
test al, 8
jne 0x140399700
mov dword [rdi + 0x260], ebp
cmp dword [rbx + 0x24], 4
jne 0x14039970f
mov rsi, qword [rdi + 0x230]
jmp 0x140399771
test dword [rbx], 0x2000000
je 0x14039974a
mov ecx, dword [rbx + 0x158]
call fcn.14004c820
mov rsi, rax
test rax, rax
jne 0x14039977a
lea rcx, str.E86:_Buffer__ld_does_not_exist
call qword [case.0x1400407ae.0]
mov edx, dword [rbx + 0x158]
mov rcx, rax
call fcn.1401860c0
jmp 0x14039980b
test byte [rbx + 4], 2
mov r8d, 1
je 0x14039975d
mov r8d, dword [rbx + 0x17c]
mov rcx, qword [rbx + 0x140]
mov edx, 1
call fcn.140399850
mov rsi, rax
test rsi, rsi
je 0x14039980b
test dword [rbx], 0x40000000
je 0x140399792
cmp dword [rbx + 0x16c], ebp
sete bpl
mov dword [rdi + 0x360], ebp
cmp dword [rsi + 0x17a8], 0
jne 0x1403997c7
cmp dword [rdi + 0x360], 0
jne 0x1403997c7
lea rcx, str.E21:_Cannot_make_changes__modifiable_is_off
call qword [case.0x1400407ae.0]
mov rsi, rax
call fcn.140182a30
test eax, eax
jne 0x14039980b
mov rcx, rsi
call fcn.140182400
jmp 0x14039980b
mov r8, qword [rsi + 0x80]
lea rdx, str.writing_err_to_buffer__s
mov rcx, rdi
call fcn.1401522a0
mov qword [rdi + 0x350], rsi
mov eax, dword [rsi + 0x98]
mov dword [rdi + 0x358], eax
mov eax, dword [0x14045e9e8]
mov dword [rdi + 0x35c], eax
cmp qword [rsi + 8], 0
jne 0x14039980b
mov rcx, rsi
call fcn.140399980
mov eax, dword [rbx + 0x20]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
mov dword [rdi + 0x144], eax
mov eax, dword [rbx + 0x24]
mov dword [rdi + 0x264], eax
mov eax, dword [rbx + 0x28]
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 0x384], eax
add rsp, 0x20
pop rdi
ret