Function at 0x140014490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
lea rdx, [rsp + 0x68]
mov dword [rbp - 0x7c], 0xff
mov rbx, rcx
xor r15d, r15d
call fcn.140013fb0
test rax, rax
je 0x140014500
mov eax, dword [rbx + 4]
mov dword [rsp + 0x5c], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x14001450e
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4b0
pop r15
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x1400144e4
mov eax, dword [rsp + 0x74]
mov dword [rbp + 0x3f0], eax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x4a8], rdi
mov edi, dword [rbp - 0x80]
mov dword [rbp + 0x3f8], eax
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0x4a0], r12
mov r12d, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x7c]
mov qword [rsp + 0x498], r13
mov r13d, dword [rsp + 0x70]
mov dword [rbp + 0x3e8], eax
mov eax, dword [rbp - 0x78]
mov qword [rsp + 0x490], r14
mov r14d, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x2c], r13d
cmp r13d, 0xc
jne 0x1400145a9
cmp r12d, 0x18
jge 0x1400145c1
mov ecx, r14d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
jmp 0x1400145bc
cmp r12d, 0x10
jge 0x1400145c1
mov r15d, r14d
sub r15d, eax
sub r15d, r13d
sar r15d, 2
test r15d, r15d
jne 0x140014603
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add ecx, dword [rbx + 0xb8]
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x140015238
cmp r14d, ecx
jl 0x140015215
mov edx, r14d
sub edx, ecx
cmp edx, 0x400
jg 0x140015215
mov rcx, rbx
call fcn.140009eb0
cmp r12d, 0x18
jne 0x140014618
cmp edi, 0xff000000
jne 0x140014618
lea eax, [r12 - 0x15]
jmp 0x140014622
xor eax, eax
test edi, edi
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x1400151f2
je 0x140014646
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400151f2
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400151f2
test r8d, r8d
js 0x1400151f2
je 0x140014674
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400151f2
mov qword [rsp + 0x4d0], rsi
test ecx, ecx
js 0x1400151d5
je 0x140014697
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400151d5
test r9d, r9d
js 0x1400151d5
test r8d, r8d
js 0x1400151d5
je 0x1400146bd
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400151d5
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
call fcn.140067440
mov qword [rsp + 0x60], rax
mov rsi, rax
test rax, rax
je 0x1400151d5
cmp r12d, 0x10
jge 0x140014bd1
xor edi, edi
test r15d, r15d
je 0x140014baf
cmp r15d, 0x100
jg 0x140014baf
test r15d, r15d
jle 0x140014841
mov rax, qword [rbx + 0xc0]
xor r14d, r14d
movsxd rsi, r15d
nop word [rax + rax]
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jae 0x14001473b
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014767
cmp dword [rbx + 0x30], edi
je 0x140014765
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014767
xor dl, dl
mov byte [rbp + r14*4 - 0x6e], dl
cmp rax, rcx
jae 0x140014780
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400147ac
cmp dword [rbx + 0x30], edi
je 0x1400147aa
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400147ac
xor dl, dl
mov byte [rbp + r14*4 - 0x6f], dl
cmp rax, rcx
jae 0x1400147c5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400147ea
cmp dword [rbx + 0x30], edi
je 0x1400147e8
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400147ea
xor cl, cl
mov byte [rbp + r14*4 - 0x70], cl
cmp r13d, 0xc
je 0x140014825
cmp rax, qword [rbx + 0xc8]
jae 0x14001480a
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014825
cmp dword [rbx + 0x30], edi
je 0x140014825
mov rcx, rbx
call fcn.140009e30
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
mov byte [rbp + r14*4 - 0x6d], 0xff
inc r14
cmp r14, rsi
jl 0x140014720
mov rsi, qword [rsp + 0x60]
mov r14d, dword [rsp + 0x24]
xor eax, eax
mov rcx, rbx
cmp r13d, 0xc
setne al
add eax, 3
imul eax, r15d
sub r14d, eax
sub r14d, dword [rsp + 0x20]
sub r14d, r13d
mov edx, r14d
call fcn.140009eb0
cmp r12d, 1
jne 0x14001487a
mov r13d, dword [rbx]
add r13d, 7
shr r13d, 3
jmp 0x140014898
cmp r12d, 4
jne 0x14001488b
mov r13d, dword [rbx]
inc r13d
shr r13d, 1
jmp 0x140014898
cmp r12d, 8
jne 0x140014b55
mov r13d, dword [rbx]
mov ecx, dword [rbx + 4]
neg r13d
and r13d, 3
mov r8d, ecx
cmp r12d, 1
jne 0x1400149dc
xor r12d, r12d
test ecx, ecx
jle 0x1400150de
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1400148e5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001490b
cmp dword [rbx + 0x30], 0
je 0x140014909
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001490b
xor cl, cl
xor r15d, r15d
movzx edx, cl
cmp dword [rbx], r15d
jle 0x1400149ba
nop word [rax + rax]
mov eax, edx
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x70]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x6f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x6e]
mov byte [rdi + rsi + 2], al
mov byte [rdi + rsi + 3], 0xff
add rdi, 4
inc r15d
cmp r15d, dword [rbx]
je 0x1400149ba
sub r14d, 1
jns 0x1400149b1
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x140014988
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400149ae
cmp dword [rbx + 0x30], 0
je 0x1400149ac
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1400149ae
xor cl, cl
movzx edx, cl
cmp r15d, dword [rbx]
jl 0x140014920
mov edx, r13d
mov rcx, rbx
call fcn.140009eb0
mov ecx, dword [rbx + 4]
inc r12d
mov r8d, ecx
cmp r12d, ecx
jl 0x1400148c0
jmp 0x1400150de
xor r15d, r15d
test ecx, ecx
jle 0x1400150de
nop word [rax + rax]
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x140014b33
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140014a1f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014a45
cmp dword [rbx + 0x30], 0
je 0x140014a43
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014a45
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r12d, 4
jne 0x140014a5b
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x70]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x6f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x6e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, dword [rbx]
je 0x140014b33
cmp r12d, 8
jne 0x140014aee
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140014ac4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014aea
cmp dword [rbx + 0x30], 0
je 0x140014ae8
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014aea
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rbp + rdx - 0x70]
inc edi
add r14d, 2
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x6f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x6e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r14d, dword [rbx]
jl 0x140014a00
mov edx, r13d
mov rcx, rbx
call fcn.140009eb0
mov ecx, dword [rbx + 4]
inc r15d
mov r8d, ecx
cmp r15d, ecx
jl 0x1400149f0
jmp 0x1400150de
mov rcx, rsi
call fcn.140066740
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x4d0]
mov r12, qword [rsp + 0x4a0]
mov rdi, qword [rsp + 0x4a8]
mov r13, qword [rsp + 0x498]
mov r14, qword [rsp + 0x490]
add rsp, 0x4b0
pop r15
pop rbx
pop rbp
ret
mov rcx, rsi
call fcn.140066740
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x140014b75
sub r14d, dword [rsp + 0x20]
xor eax, eax
sub r14d, dword [rsp + 0x2c]
mov rcx, rbx
mov edx, r14d
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x3c], eax
mov r13d, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
call fcn.140009eb0
cmp r12d, 0x18
jne 0x140014c18
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x140014c26
cmp r12d, 0x10
jne 0x140014c24
mov eax, dword [rbx]
add eax, eax
jmp 0x140014c26
xor eax, eax
neg eax
and eax, 3
mov dword [rsp + 0x2c], eax
cmp r12d, 0x18
jne 0x140014c44
mov edx, 1
mov qword [rsp + 0x50], rdx
jmp 0x140014e46
mov r10d, dword [rsp + 0x28]
mov r9d, dword [rbp + 0x3f8]
mov ecx, dword [rbp + 0x3f0]
cmp r12d, 0x20
jne 0x140014c8d
cmp r10d, 0xff
jne 0x140014c8d
cmp r9d, 0xff00
jne 0x140014c8d
cmp ecx, 0xff0000
jne 0x140014c8d
cmp edi, 0xff000000
jne 0x140014ca7
mov edx, 2
mov qword [rsp + 0x50], rdx
jmp 0x140014e46
test ecx, ecx
je 0x1400151b0
test r9d, r9d
je 0x1400151b0
test r10d, r10d
je 0x1400151b0
call fcn.140013e30
mov edx, dword [rbp + 0x3f0]
sub eax, 7
mov ecx, dword [rbp + 0x3f0]
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
mov dword [rsp + 0x34], eax
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r14d, al
mov dword [rsp + 0x30], r14d
call fcn.140013e30
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x3c], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r10d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r11d, al
mov dword [rsp + 0x38], r11d
call fcn.140013e30
sub eax, 7
mov edx, r10d
shr edx, 1
mov ecx, r10d
and edx, 0x55555555
mov dword [rsp + 0x44], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, edi
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r9d, al
mov dword [rsp + 0x40], r9d
call fcn.140013e30
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
and edx, 0x55555555
mov dword [rsp + 0x4c], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r15d, al
mov dword [rsp + 0x48], r15d
cmp r14d, 8
ja 0x1400151b0
cmp r11d, 8
ja 0x1400151b0
cmp r9d, 8
ja 0x1400151b0
xor edx, edx
mov qword [rsp + 0x50], rdx
cmp r15d, 8
ja 0x1400151b0
mov ecx, dword [rbx + 4]
mov r8d, ecx
mov dword [rsp + 0x24], r13d
test ecx, ecx
jle 0x1400150de
nop dword [rax]
mov eax, dword [rbx]
movsxd rcx, r13d
test rdx, rdx
je 0x140014feb
mov dword [rsp + 0x20], 0
test eax, eax
jle 0x1400150b1
lea rdi, [rsi + rcx]
lea r14, [rdi + 1]
lea r15, [rdi + 2]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140014eaf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014ed5
cmp dword [rbx + 0x30], 0
je 0x140014ed3
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014ed5
xor cl, cl
mov byte [r15], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140014ef7
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014f1d
cmp dword [rbx + 0x30], 0
je 0x140014f1b
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014f1d
xor cl, cl
mov byte [r14], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140014f3f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014f65
cmp dword [rbx + 0x30], 0
je 0x140014f63
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014f65
xor cl, cl
cmp qword [rsp + 0x50], 2
mov byte [rdi], cl
jne 0x140014fb6
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140014f8e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014fb8
cmp dword [rbx + 0x30], 0
je 0x140014fb2
mov rcx, rbx
call fcn.140009e30
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140014fb8
xor cl, cl
jmp 0x140014fb8
mov cl, 0xff
mov byte [rdi + 3], cl
add r13d, 4
movzx eax, cl
add r15, 4
mov ecx, dword [rsp + 0x20]
add r14, 4
or dword [rbp + 0x3e8], eax
inc ecx
add rdi, 4
mov dword [rsp + 0x20], ecx
cmp ecx, dword [rbx]
jl 0x140014e90
jmp 0x1400150b1
xor r15d, r15d
test eax, eax
jle 0x1400150b1
lea rdi, [rsi + rcx]
mov esi, dword [rbp + 0x3e8]
mov rcx, rbx
call fcn.14000a0c0
mov r14d, eax
cmp r12d, 0x10
je 0x14001501f
mov rcx, rbx
call fcn.14000a0c0
shl eax, 0x10
add r14d, eax
mov r8d, dword [rsp + 0x30]
mov ecx, r14d
and ecx, dword [rbp + 0x3f0]
mov edx, dword [rsp + 0x34]
call fcn.140013ea0
mov r8d, dword [rsp + 0x38]
mov ecx, r14d
and ecx, dword [rbp + 0x3f8]
mov edx, dword [rsp + 0x3c]
mov byte [rdi], al
call fcn.140013ea0
mov r8d, dword [rsp + 0x40]
mov ecx, r14d
and ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x44]
mov byte [rdi + 1], al
call fcn.140013ea0
mov byte [rdi + 2], al
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140015088
mov r8d, dword [rsp + 0x48]
and r14d, eax
mov edx, dword [rsp + 0x4c]
mov ecx, r14d
call fcn.140013ea0
jmp 0x14001508d
mov eax, 0xff
mov byte [rdi + 3], al
or esi, eax
add rdi, 4
add r13d, 4
inc r15d
cmp r15d, dword [rbx]
jl 0x140015000
mov dword [rbp + 0x3e8], esi
mov rsi, qword [rsp + 0x60]
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
call fcn.140009eb0
mov r9d, dword [rsp + 0x24]
mov ecx, dword [rbx + 4]
inc r9d
mov rdx, qword [rsp + 0x50]
mov r8d, ecx
mov dword [rsp + 0x24], r9d
cmp r9d, ecx
jl 0x140014e60
cmp dword [rbp + 0x3e8], 0
jne 0x14001510e
mov eax, dword [rbx]
imul eax, ecx
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14001510e
nop word [rax + rax]
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x140015100
mov r8d, dword [rbx + 4]
cmp dword [rsp + 0x5c], 0
jle 0x140015193
xor r10d, r10d
mov edx, r8d
test r8d, 0xfffffffe
jle 0x140015193
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, rsi
shl r9d, 2
test eax, eax
jle 0x14001517f
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x140015160
mov r8d, dword [rbx + 4]
inc r10d
mov eax, r8d
mov edx, r8d
sar eax, 1
cmp r10d, eax
jl 0x140015130
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x3d8]
mov dword [rcx], eax
mov rax, qword [rbp + 0x3e0]
mov dword [rax], r8d
mov rax, rsi
jmp 0x140014b7b
mov rcx, rsi
call fcn.140066740
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x140014b75
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140014b75
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140014b83
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140014b83
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x140014b83