Function at 0x1801e50c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movsxd rdi, dword [rcx + 0x60]
mov r14, rdx
mov rbx, rcx
mov rbp, r8
mov rcx, qword [rcx + 0x68]
lea rdx, [rdi + rdi*2]
add rdx, rdx
cmp dword [rcx + rdx*8 + 4], 0
je 0x1801e5128
mov eax, dword [rcx + rdx*8]
cmp eax, 1
je 0x1801e5103
test eax, eax
jne 0x1801e5128
mov dword [rcx + rdx*8], 2
lea r9, str.unexpected_page_info_segment__marking_previous_page_finished
mov r8d, dword [r14]
mov edx, 2
mov rcx, rbx
call fcn.1801e5770
mov rcx, qword [rbx + 0x68]
mov edi, dword [rbx + 0x60]
movsxd rax, edi
xor r15d, r15d
mov qword [rsp + 0x70], r12
lea rsi, [rax + rax*2]
shl rsi, 4
cmp dword [rcx + rsi], r15d
je 0x1801e51d0
movabs r12, 0x555555555555555
nop
mov eax, dword [rbx + 0x64]
inc edi
add rsi, 0x30
cmp edi, eax
jl 0x1801e51ca
lea eax, [rax*4]
movsxd rcx, eax
mov dword [rbx + 0x64], eax
cmp rcx, r12
jae 0x1801e51fe
mov rax, qword [rbx]
lea r8, [rcx + rcx*2]
mov rdx, qword [rbx + 0x68]
mov rcx, rax
shl r8, 4
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
test rax, rax
je 0x1801e51fe
mov edx, edi
mov qword [rbx + 0x68], rax
cmp edi, dword [rbx + 0x64]
jge 0x1801e51ca
mov rcx, rsi
nop
mov rax, qword [rbx + 0x68]
lea rcx, [rcx + 0x30]
inc edx
mov dword [rcx + rax - 0x30], r15d
mov rax, qword [rbx + 0x68]
mov dword [rcx + rax - 0x2c], r15d
mov rax, qword [rbx + 0x68]
mov qword [rcx + rax - 8], r15
cmp edx, dword [rbx + 0x64]
jl 0x1801e51a0
mov rcx, qword [rbx + 0x68]
cmp dword [rsi + rcx], r15d
jne 0x1801e5150
mov dword [rbx + 0x60], edi
movsxd rax, edi
lea rsi, [rax + rax*2]
shl rsi, 4
add rsi, rcx
mov dword [rsi], 1
mov eax, dword [r14 + 8]
mov dword [rsi + 4], eax
cmp qword [r14 + 0x10], 0x13
jae 0x1801e521a
lea r9, str.segment_too_short
jmp 0x1801e5205
lea r9, str.failed_to_reallocate_pages
mov r8d, dword [r14]
mov edx, 3
mov rcx, rbx
call fcn.1801e5770
jmp 0x1801e5489
movzx eax, byte [rbp + 1]
movzx ecx, byte [rbp]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 2]
shl ecx, 0x10
shl eax, 8
or ecx, eax
movzx eax, byte [rbp + 3]
or ecx, eax
mov dword [rsi + 0xc], ecx
movzx eax, byte [rbp + 5]
movzx ecx, byte [rbp + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 6]
shl ecx, 0x10
shl eax, 8
or ecx, eax
movzx eax, byte [rbp + 7]
or ecx, eax
mov dword [rsi + 8], ecx
movzx eax, byte [rbp + 9]
movzx ecx, byte [rbp + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 0xa]
shl ecx, 0x10
shl eax, 8
or ecx, eax
movzx eax, byte [rbp + 0xb]
or ecx, eax
mov dword [rsi + 0x10], ecx
movzx eax, byte [rbp + 0xd]
movzx ecx, byte [rbp + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 0xe]
shl eax, 8
shl ecx, 0x10
or ecx, eax
movzx eax, byte [rbp + 0xf]
or ecx, eax
mov dword [rsi + 0x14], ecx
movzx eax, byte [rbp + 0x10]
mov byte [rsi + 0x24], al
test al, al
jns 0x1801e52b9
lea r9, str.page_segment_indicates_use_of_color_segments__NYI_
jmp 0x1801e5205
movzx eax, byte [rbp + 0x12]
mov edi, 0x7fff
movzx ecx, byte [rbp + 0x11]
shl cx, 8
or cx, ax
mov eax, 0xffff8000
xor cx, ax
add cx, ax
movzx edx, cx
movzx eax, dx
and ax, di
test dx, dx
cmovns ax, r15w
shr edx, 0xf
mov dword [rsi + 0x1c], edx
mov word [rsi + 0x18], ax
cmp dword [rsi + 8], 0xffffffff
jne 0x1801e5320
cmp edx, r15d
jne 0x1801e5320
mov r8d, dword [r14]
lea r9, str.height_is_unspecified_but_page_is_not_marked_as_striped__assuming_striped_with_maximum_strip_size
mov edx, 2
mov rcx, rbx
call fcn.1801e5770
mov dword [rsi + 0x1c], 1
mov word [rsi + 0x18], di
mov dword [rsi + 0x20], r15d
cmp qword [r14 + 0x10], 0x13
jbe 0x1801e5342
mov r8d, dword [r14]
lea r9, str.extra_data_in_segment
mov edx, 2
mov rcx, rbx
call fcn.1801e5770
mov eax, dword [rsi + 0x10]
mov ecx, dword [rsi + 8]
mov edx, dword [rsi + 0xc]
mov r8d, dword [rsi + 4]
test eax, eax
jne 0x1801e5377
mov dword [rsp + 0x30], ecx
lea r9, str.page__d_image_is__dx_d__unknown_res_
mov dword [rsp + 0x28], edx
mov rcx, rbx
mov dword [rsp + 0x20], r8d
lea edx, [rax + 1]
mov r8d, dword [r14]
call fcn.1801e5770
jmp 0x1801e53da
mov r9d, dword [rsi + 0x14]
mov r10d, dword [r14]
cmp eax, r9d
jne 0x1801e53ad
mov dword [rsp + 0x38], eax
lea r9, str.page__d_image_is__dx_d___d_ppm_
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov edx, 1
mov dword [rsp + 0x20], r8d
mov r8d, r10d
call fcn.1801e5770
jmp 0x1801e53da
mov dword [rsp + 0x40], r9d
lea r9, str.page__d_image_is__dx_d___dx_d_ppm_
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov edx, 1
mov dword [rsp + 0x20], r8d
mov r8d, r10d
call fcn.1801e5770
cmp dword [rsi + 0x1c], r15d
je 0x1801e53ff
movzx eax, word [rsi + 0x18]
lea r9, str._tmaximum_stripe_size:__d
mov r8d, dword [r14]
mov edx, 1
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1801e5770
mov r8d, dword [rsi + 8]
cmp r8d, 0xffffffff
jne 0x1801e540e
movzx r8d, word [rsi + 0x18]
mov edx, dword [rsi + 0xc]
mov rcx, rbx
call fcn.180251ca0
mov qword [rsi + 0x28], rax
test rax, rax
jne 0x1801e5439
mov r8d, dword [r14]
lea r9, str.failed_to_allocate_buffer_for_page_image
lea edx, [rax + 2]
mov rcx, rbx
call fcn.1801e5770
jmp 0x1801e5489
mov r8d, dword [rax + 8]
imul r8d, dword [rax + 4]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsi + 0x24]
and al, 4
neg al
sbb edx, edx
movzx edx, dl
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rsi + 0x28]
lea r9, str.allocated__dx_d_page_image___d_bytes_
mov r8d, dword [r14]
mov ecx, dword [rdx + 4]
mov eax, dword [rdx + 8]
imul eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rdx]
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1801e5770
xor eax, eax
mov r12, qword [rsp + 0x70]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret