Function at 0x1800bf960
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 r13
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x74], 0xff
mov rbx, rcx
xor r13d, r13d
call fcn.1800bf2c0
test rax, rax
je 0x1800bf9d7
mov eax, dword [rbx + 4]
mov dword [rsp + 0x64], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x1800bf9e5
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x4c0
pop r13
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x1800bf9b4
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0x4e0], rsi
mov esi, dword [rsp + 0x78]
mov qword [rsp + 0x4b8], rdi
mov edi, dword [rsp + 0x70]
mov dword [rbp + 0x400], eax
mov eax, dword [rbp - 0x80]
mov qword [rsp + 0x4b0], r12
mov r12d, dword [rbp - 0x70]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x7c]
mov qword [rsp + 0x4a8], r14
mov r14d, dword [rbp - 0x78]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp - 0x74]
mov qword [rsp + 0x4a0], r15
mov r15d, dword [rsp + 0x74]
mov dword [rbp + 0x408], eax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x40], edi
cmp esi, 0xc
jne 0x1800bfa88
cmp edi, 0x18
jge 0x1800bfaa3
mov ecx, r15d
mov eax, 0x55555556
sub ecx, r12d
sub ecx, 0x18
imul ecx
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x1800bfa9a
cmp edi, 0x10
jge 0x1800bfaa3
mov r13d, r15d
sub r13d, r12d
sub r13d, esi
sar r13d, 2
test r13d, r13d
jne 0x1800bfb30
mov edx, dword [rbx + 0xb8]
sub edx, dword [rbx + 0xd0]
mov r8d, dword [rbx + 0xc0]
add edx, r8d
lea eax, [rdx - 1]
cmp eax, 0x3ff
ja 0x1800c0966
cmp r15d, edx
jl 0x1800c094a
mov ecx, r15d
sub ecx, edx
cmp ecx, 0x400
jg 0x1800c094a
test ecx, ecx
je 0x1800bfb30
jns 0x1800bfaf7
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1800bfb30
cmp qword [rbx + 0x10], 0
je 0x1800bfb26
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x1800bfb26
mov rax, qword [rbx + 0xc8]
sub ecx, edx
mov edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1800bfb30
movsxd rax, ecx
add qword [rbx + 0xc0], rax
cmp edi, 0x18
jne 0x1800bfb43
cmp r14d, 0xff000000
jne 0x1800bfb43
lea eax, [rdi - 0x15]
jmp 0x1800bfb4e
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x1800c092e
jne 0x1800bfb6b
lea r9d, [rcx*4]
jmp 0x1800bfb8d
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1800c092e
lea r9d, [rcx*4]
test r9d, r9d
js 0x1800c092e
test r8d, r8d
js 0x1800c092e
je 0x1800bfbaa
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1800c092e
test ecx, ecx
jne 0x1800bfbb8
lea r9d, [rcx*4]
jmp 0x1800bfbdb
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1800c0912
lea edx, [rcx*4]
test edx, edx
js 0x1800c0912
mov r9d, edx
test r8d, r8d
je 0x1800bfbf2
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1800c0912
imul r8d, ecx
shl r8d, 2
movsxd rcx, r8d
call fcn.18016cf84
mov qword [rsp + 0x68], rax
mov r14, rax
test rax, rax
je 0x1800c0912
cmp edi, 0x10
jge 0x1800c01e3
xor edi, edi
test r13d, r13d
je 0x1800c01bc
cmp r13d, 0x100
jg 0x1800c01bc
test r13d, r13d
jle 0x1800bfd80
mov r15d, dword [rsp + 0x20]
lea rsi, [rbx + 0x30]
xor r12d, r12d
movsxd r14, r13d
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800bfc6f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfc98
cmp dword [rbx + 0x30], edi
lea rsi, [rbx + 0x30]
je 0x1800bfc96
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfc98
xor cl, cl
mov qword [rsp + 0x28], rsi
mov byte [rbp + r12*4 - 0x5e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800bfcba
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfcde
cmp dword [rsi], edi
je 0x1800bfcdc
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfcde
xor cl, cl
mov byte [rbp + r12*4 - 0x5f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800bfcff
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfd23
cmp dword [rsi], edi
je 0x1800bfd21
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfd23
xor cl, cl
mov byte [rbp + r12*4 - 0x60], cl
cmp r15d, 0xc
je 0x1800bfd5b
cmp rax, qword [rbx + 0xc8]
jae 0x1800bfd43
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800bfd5b
mov rax, qword [rsp + 0x28]
cmp dword [rax], edi
je 0x1800bfd5b
mov rcx, rbx
call fcn.1800b5010
inc qword [rbx + 0xc0]
mov byte [rbp + r12*4 - 0x5d], 0xff
inc r12
cmp r12, r14
jl 0x1800bfc50
mov r14, qword [rsp + 0x68]
mov r15d, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x20]
mov r12d, dword [rsp + 0x38]
xor eax, eax
cmp esi, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, r12d
sub r15d, esi
je 0x1800bfded
test r15d, r15d
jns 0x1800bfdaf
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1800bfded
cmp qword [rbx + 0x10], rdi
je 0x1800bfde3
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x1800bfde3
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x1800bfded
movsxd rax, r15d
add qword [rbx + 0xc0], rax
mov r15d, dword [rsp + 0x40]
cmp r15d, 1
jne 0x1800bfe05
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1800bfe23
cmp r15d, 4
jne 0x1800bfe16
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1800bfe23
cmp r15d, 8
jne 0x1800c0195
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
xor r13d, r13d
mov edx, eax
cmp r15d, 1
jne 0x1800bffd4
test eax, eax
jle 0x1800c081a
mov r9, qword [rbx + 0xc0]
mov esi, 7
cmp r9, qword [rbx + 0xc8]
jae 0x1800bfe69
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x1800bfe90
cmp dword [rbx + 0x30], 0
je 0x1800bfe8e
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x1800bfe90
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r11d, cl
mov rcx, r9
test edx, edx
jle 0x1800bff79
mov r8, r9
mov r10d, edx
nop word [rax + rax]
mov eax, r11d
mov ecx, esi
sar eax, cl
mov r9d, r8d
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x60]
mov byte [rdi + r14], al
movzx eax, byte [rbp + rcx - 0x5f]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rbp + rcx - 0x5e]
mov rcx, r8
mov byte [rdi + r14 + 2], al
lea eax, [r15 + 1]
mov byte [rdi + r14 + 3], 0xff
mov r15d, eax
add rdi, 4
cmp eax, edx
je 0x1800bff79
sub esi, 1
jns 0x1800bff5d
mov esi, 7
cmp r8, qword [rbx + 0xc8]
jae 0x1800bff25
movzx r9d, byte [r8]
lea rcx, [r8 + 1]
mov qword [rbx + 0xc0], rcx
mov edx, r10d
movzx r11d, r9b
jmp 0x1800bff67
cmp dword [rbx + 0x30], 0
je 0x1800bff51
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx r9d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
mov edx, dword [rbx]
movzx r11d, r9b
jmp 0x1800bff67
xor r9b, r9b
mov edx, r10d
movzx r11d, r9b
jmp 0x1800bff67
mov rcx, qword [rbx + 0xc0]
mov edx, r10d
mov r8, rcx
mov r9d, ecx
mov r10d, edx
cmp r15d, edx
jl 0x1800bfeb0
test r12d, r12d
je 0x1800bffbe
cmp qword [rbx + 0x10], 0
je 0x1800bffb1
mov r8d, dword [rbx + 0xc8]
sub r8d, r9d
cmp r8d, r12d
jge 0x1800bffb1
mov rax, qword [rbx + 0xc8]
mov edx, r12d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x1800bffbe
mov eax, r12d
add rax, rcx
mov qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1800bfe44
jmp 0x1800c081a
test eax, eax
jle 0x1800c081a
nop dword [rax]
mov r8d, dword [rbx]
xor esi, esi
test r8d, r8d
jle 0x1800c013c
nop
mov r9, qword [rbx + 0xc0]
cmp r9, qword [rbx + 0xc8]
jae 0x1800c0010
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x1800c003a
cmp dword [rbx + 0x30], 0
je 0x1800c0038
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x1800c003a
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r15d, 4
jne 0x1800c005c
mov r10d, eax
and r10d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x60]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5f]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5e]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
lea eax, [rsi + 1]
cmp eax, r8d
je 0x1800c013c
cmp r15d, 8
jne 0x1800c00f1
cmp r9, qword [rbx + 0xc8]
jae 0x1800c00c4
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x1800c00ed
cmp dword [r11], 0
je 0x1800c00eb
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r8d, dword [rbx]
jmp 0x1800c00ed
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x60]
inc edi
add esi, 2
mov r9d, r8d
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5f]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5e]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
cmp esi, r8d
jl 0x1800bfff0
test r12d, r12d
je 0x1800c017f
cmp qword [rbx + 0x10], 0
je 0x1800c0175
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x1800c0175
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1800c017f
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1800bffe0
jmp 0x1800c081a
mov rcx, r14
call fcn.180168e34
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_bpp
jmp 0x1800c0980
mov rcx, r14
call fcn.180168e34
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.invalid
jmp 0x1800c0980
xor edx, edx
sub r15d, r12d
mov dword [rsp + 0x50], edx
mov r13d, edx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x5c], edx
mov dword [rsp + 0x38], edx
sub r15d, esi
je 0x1800c0265
test r15d, r15d
jns 0x1800c0225
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1800c0265
cmp qword [rbx + 0x10], rdx
je 0x1800c025b
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x1800c025b
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
xor edx, edx
jmp 0x1800c0265
movsxd rax, r15d
add qword [rbx + 0xc0], rax
cmp edi, 0x18
jne 0x1800c0272
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1800c0282
cmp edi, 0x10
jne 0x1800c027f
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1800c0282
mov r8d, edx
neg r8d
and r8d, 3
mov dword [rsp + 0x34], r8d
cmp edi, 0x18
jne 0x1800c02a3
mov r10d, 1
mov qword [rsp + 0x28], r10
jmp 0x1800c04c5
mov r11d, dword [rsp + 0x44]
cmp edi, 0x20
mov edi, dword [rsp + 0x30]
mov r10, rdx
mov qword [rsp + 0x28], rdx
jne 0x1800c030a
mov qword [rsp + 0x28], rdx
cmp r11d, 0xff
jne 0x1800c030a
mov ecx, dword [rbp + 0x400]
mov qword [rsp + 0x28], rdx
cmp edi, 0xff00
jne 0x1800c0310
mov qword [rsp + 0x28], rdx
cmp ecx, 0xff0000
jne 0x1800c0310
mov r9d, dword [rsp + 0x48]
mov qword [rsp + 0x28], rdx
cmp r9d, 0xff000000
jne 0x1800c032e
mov r10d, 2
mov qword [rsp + 0x28], r10
jmp 0x1800c04c5
mov ecx, dword [rbp + 0x400]
test ecx, ecx
je 0x1800c08ee
test edi, edi
je 0x1800c08ee
test r11d, r11d
je 0x1800c08ee
mov r9d, dword [rsp + 0x48]
call fcn.1800bf150
mov edx, dword [rbp + 0x400]
sub eax, 7
mov ecx, dword [rbp + 0x400]
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
mov dword [rsp + 0x50], 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, edi
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 + 0x4c], r15d
call fcn.1800bf150
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
and edx, 0x55555555
mov dword [rsp + 0x58], 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, r11d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx esi, al
mov dword [rsp + 0x54], esi
call fcn.1800bf150
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
mov dword [rsp + 0x60], 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, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
mov dword [rsp + 0x5c], edi
call fcn.1800bf150
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
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
cmp r15d, 8
ja 0x1800c08ee
cmp esi, 8
ja 0x1800c08ee
cmp edi, 8
ja 0x1800c08ee
cmp r11d, 8
ja 0x1800c08ee
mov r8d, dword [rsp + 0x34]
mov eax, dword [rbx + 4]
xor edi, edi
mov dword [rsp + 0x20], edi
mov edx, eax
test eax, eax
jle 0x1800c081a
nop dword [rax + rax]
mov eax, dword [rbx]
xor r15d, r15d
movsxd rcx, r13d
test r10, r10
je 0x1800c0652
test eax, eax
jle 0x1800c07ba
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800c052f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c0559
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1800c0557
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c0559
xor cl, cl
mov r12, rdi
mov byte [rsi + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800c0577
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c059c
cmp dword [rdi], 0
je 0x1800c059a
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c059c
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800c05bb
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c05e0
cmp dword [rdi], 0
je 0x1800c05de
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c05e0
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [rsi], cl
jne 0x1800c062b
cmp rax, qword [rbx + 0xc8]
jae 0x1800c0602
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c062d
cmp dword [r12], 0
je 0x1800c0627
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c062d
xor cl, cl
jmp 0x1800c062d
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x408], eax
inc r15d
mov byte [rsi + 3], cl
add rsi, 4
cmp r15d, dword [rbx]
jl 0x1800c0510
jmp 0x1800c07b1
test eax, eax
jle 0x1800c07ba
lea rsi, [rcx + r14]
mov r14d, dword [rsp + 0x40]
cmp r14d, 0x10
jne 0x1800c071b
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800c068c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c06b2
cmp dword [rbx + 0x30], 0
je 0x1800c06b0
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800c06b2
xor cl, cl
mov rdx, rbx
mov r8d, 0x30
movzx r12d, cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800c06e0
movzx ecx, byte [rax]
inc rax
movzx edi, cl
shl edi, 8
add edi, r12d
mov qword [rbx + 0xc0], rax
jmp 0x1800c0725
cmp dword [r8 + rdx], 0
je 0x1800c070e
mov rcx, rbx
call fcn.1800b5010
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
movzx edi, cl
shl edi, 8
add edi, r12d
mov qword [rbx + 0xc0], rax
jmp 0x1800c0725
xor cl, cl
movzx edi, cl
shl edi, 8
add edi, r12d
jmp 0x1800c0725
mov rcx, rbx
call fcn.1800b5220
mov edi, eax
mov r8d, dword [rsp + 0x4c]
mov ecx, edi
and ecx, dword [rbp + 0x400]
mov edx, dword [rsp + 0x50]
call fcn.1800bf1c0
mov r8d, dword [rsp + 0x54]
mov ecx, edi
and ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x58]
mov byte [rsi], al
call fcn.1800bf1c0
mov r8d, dword [rsp + 0x5c]
mov ecx, edi
and ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x60]
mov byte [rsi + 1], al
call fcn.1800bf1c0
mov r9d, dword [rsp + 0x48]
mov byte [rsi + 2], al
test r9d, r9d
je 0x1800c078a
mov r8d, dword [rsp + 0x38]
and edi, r9d
mov edx, dword [rsp + 0x3c]
mov ecx, edi
call fcn.1800bf1c0
jmp 0x1800c078f
mov eax, 0xff
or dword [rbp + 0x408], eax
add r13d, 4
mov byte [rsi + 3], al
inc r15d
add rsi, 4
cmp r15d, dword [rbx]
jl 0x1800c0663
mov r14, qword [rsp + 0x68]
mov edi, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x1800c0802
cmp qword [rbx + 0x10], 0
je 0x1800c07f8
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x1800c07f8
mov rax, qword [rbx + 0xc8]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
mov r8d, dword [rsp + 0x34]
jmp 0x1800c0802
mov eax, r8d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc edi
mov r10, qword [rsp + 0x28]
mov edx, eax
mov dword [rsp + 0x20], edi
cmp edi, eax
jl 0x1800c04e0
cmp dword [rbp + 0x408], 0
jne 0x1800c0842
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1800c0842
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x1800c0834
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x64], 0
jle 0x1800c08be
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1800c08be
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, r14
shl r9d, 2
test eax, eax
jle 0x1800c08af
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x1800c0890
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1800c0860
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x3e8]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x3f0]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x3f8]
test rcx, rcx
je 0x1800c08e6
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r14
jmp 0x1800c098b
mov rcx, r14
call fcn.180168e34
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_masks
jmp 0x1800c0980
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.outofmem
jmp 0x1800c0980
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.too_large
jmp 0x1800c0980
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_offset
jmp 0x1800c0980
mov edx, dword [0x1805e2604]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
lea rdx, str.bad_header
mov ecx, 0x28
mov qword [rcx + rax], rdx
xor eax, eax
mov r14, qword [rsp + 0x4a8]
mov r12, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4b8]
mov rsi, qword [rsp + 0x4e0]
mov r15, qword [rsp + 0x4a0]
add rsp, 0x4c0
pop r13
pop rbx
pop rbp
ret