Function at 0x140399290
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 0x1403992cb
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 0x1403992d9
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x380], eax
test byte [rdx], 4
je 0x1403992e7
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x140], eax
test byte [rdx], 8
je 0x1403992f5
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 0x140399333
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 0x140399347
mov eax, dword [rdx + 0x21c]
mov dword [rcx + 0x148], eax
test dword [rdx], 0x800
je 0x14039935b
mov eax, dword [rdx + 0x220]
mov dword [rcx + 0x268], eax
test dword [rdx], 0x10000000
je 0x14039936d
mov dword [rcx + 0x3f4], 1
xor ebp, ebp
mov qword [rsp + 0x30], rsi
test byte [rdx], 0x10
mov qword [rsp + 0x38], r14
je 0x1403993e6
lea rsi, [rcx + 0x4c8]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140399399
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x1403993a6
mov rcx, qword [rsi]
test rcx, rcx
je 0x1403993a6
call fcn.1402e0f00
cmp dword [rsi + 0x10], ebp
je 0x1403993c3
mov rcx, qword [rsi]
test rcx, rcx
je 0x1403993c0
cmp dword [0x14045b3f8], ebp
jne 0x1403993c0
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1403993e6
cmp byte [rax], bpl
je 0x1403993e6
lea rdx, [rbx + 0x198]
mov rcx, rsi
call fcn.1400c0d10
test byte [rbx], 0x20
je 0x140399453
lea rsi, [rdi + 0x218]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140399406
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x140399413
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399413
call fcn.1402e0f00
cmp dword [rsi + 0x10], ebp
je 0x140399430
mov rcx, qword [rsi]
test rcx, rcx
je 0x14039942d
cmp dword [0x14045b3f8], ebp
jne 0x14039942d
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x1b0]
test rax, rax
je 0x140399453
cmp byte [rax], bpl
je 0x140399453
lea rdx, [rbx + 0x1b0]
mov rcx, rsi
call fcn.1400c0d10
test byte [rbx], 0x40
je 0x1403994c0
lea rsi, [rdi + 0x338]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140399473
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x140399480
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399480
call fcn.1402e0f00
cmp dword [rsi + 0x10], ebp
je 0x14039949d
mov rcx, qword [rsi]
test rcx, rcx
je 0x14039949a
cmp dword [0x14045b3f8], ebp
jne 0x14039949a
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x1c8]
test rax, rax
je 0x1403994c0
cmp byte [rax], bpl
je 0x1403994c0
lea rdx, [rbx + 0x1c8]
mov rcx, rsi
call fcn.1400c0d10
test byte [rbx], 0x80
je 0x14039952d
lea rsi, [rdi + 0x4e0]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1403994e0
call fcn.14009f540
mov qword [rsi + 8], rbp
jmp 0x1403994ed
mov rcx, qword [rsi]
test rcx, rcx
je 0x1403994ed
call fcn.1402e0f00
cmp dword [rsi + 0x10], ebp
je 0x14039950a
mov rcx, qword [rsi]
test rcx, rcx
je 0x140399507
cmp dword [0x14045b3f8], ebp
jne 0x140399507
call fcn.140005660
mov dword [rsi + 0x10], ebp
mov qword [rsi], rbp
mov rax, qword [rbx + 0x1e0]
test rax, rax
je 0x14039952d
cmp byte [rax], bpl
je 0x14039952d
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 0x140399655
cmp dword [rbx + 0x20], 3
jne 0x140399655
test al, 4
jne 0x14039955e
mov dword [rdi + 0x140], ebp
test dword [rbx], 0x1000000
je 0x140399599
mov ecx, dword [rbx + 0x154]
call fcn.14004c820
mov rsi, rax
test rax, rax
jne 0x1403995c6
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 0x140399655
mov r8d, 1
test byte [rbx + 4], r8b
je 0x1403995ac
mov r8d, dword [rbx + 0x178]
mov rcx, qword [rbx + 0x138]
xor edx, edx
call fcn.1403997e0
mov rsi, rax
test rax, rax
je 0x140399655
test dword [rbx], 0x20000000
je 0x1403995df
mov eax, ebp
cmp dword [rbx + 0x168], eax
sete al
mov dword [rdi + 0x240], eax
cmp dword [rsi + 0x17a8], ebp
jne 0x140399612
cmp dword [rdi + 0x240], ebp
jne 0x140399612
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 0x140399655
mov rcx, rsi
call fcn.140182400
jmp 0x140399655
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 0x140399655
mov rcx, rsi
call fcn.140399910
mov eax, dword [rbx]
bt eax, 0x11
jae 0x14039979b
mov ecx, dword [rbx + 0x24]
cmp ecx, 3
je 0x140399686
cmp ecx, 4
jne 0x14039979b
bt eax, 0x10
jae 0x14039979b
cmp dword [rbx + 0x20], 3
jne 0x14039979b
test al, 8
jne 0x140399690
mov dword [rdi + 0x260], ebp
cmp dword [rbx + 0x24], 4
jne 0x14039969f
mov rsi, qword [rdi + 0x230]
jmp 0x140399701
test dword [rbx], 0x2000000
je 0x1403996da
mov ecx, dword [rbx + 0x158]
call fcn.14004c820
mov rsi, rax
test rax, rax
jne 0x14039970a
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 0x14039979b
test byte [rbx + 4], 2
mov r8d, 1
je 0x1403996ed
mov r8d, dword [rbx + 0x17c]
mov rcx, qword [rbx + 0x140]
mov edx, 1
call fcn.1403997e0
mov rsi, rax
test rsi, rsi
je 0x14039979b
test dword [rbx], 0x40000000
je 0x140399722
cmp dword [rbx + 0x16c], ebp
sete bpl
mov dword [rdi + 0x360], ebp
cmp dword [rsi + 0x17a8], 0
jne 0x140399757
cmp dword [rdi + 0x360], 0
jne 0x140399757
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 0x14039979b
mov rcx, rsi
call fcn.140182400
jmp 0x14039979b
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 0x14039979b
mov rcx, rsi
call fcn.140399910
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