Function at 0x140080900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xda8
mov rax, qword [0x141be5d40]
xor rax, rsp
mov qword [rsp + 0xd90], rax
cmp dword [rsp + 0xdd8], 4
jl 0x14008093d
xor eax, eax
test eax, eax
jne 0x140080937
mov dword [rsp + 0x44], 0x10000
jmp 0x140080951
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14008096e
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xdc8]
mov dword [rcx + rax*4], 0
jmp 0x140080947
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xdb8]
movzx eax, byte [rcx + rax]
shl eax, 8
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xdd0]
dec eax
mov dword [rsp + 0x44], eax
jmp 0x1400809a4
mov eax, dword [rsp + 0x44]
sub eax, 4
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 3
jl 0x140080b25
movsxd rax, dword [rsp + 0x44]
xor ecx, ecx
mov rdx, qword [rsp + 0xdc0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x40]
sar eax, 8
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
inc eax
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x44]
dec eax
cdqe
xor ecx, ecx
mov rdx, qword [rsp + 0xdc0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x40]
sar eax, 8
mov ecx, dword [rsp + 0x44]
dec ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
inc eax
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x44]
sub eax, 2
cdqe
xor ecx, ecx
mov rdx, qword [rsp + 0xdc0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x40]
sar eax, 8
mov ecx, dword [rsp + 0x44]
sub ecx, 2
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
inc eax
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x44]
sub eax, 3
cdqe
xor ecx, ecx
mov rdx, qword [rsp + 0xdc0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x40]
sar eax, 8
mov ecx, dword [rsp + 0x44]
sub ecx, 3
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
inc eax
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
jmp 0x140080999
jmp 0x140080b31
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140080b90
movsxd rax, dword [rsp + 0x44]
xor ecx, ecx
mov rdx, qword [rsp + 0xdc0]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x40]
sar eax, 8
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
inc eax
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
jmp 0x140080b27
mov dword [rsp + 0x44], 0
jmp 0x140080ba4
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x22
jge 0x140080bfb
movsxd rax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0xdd0]
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
mov r8, qword [rsp + 0xdb8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0xdd0]
add ecx, eax
mov eax, ecx
cdqe
xor ecx, ecx
mov rdx, qword [rsp + 0xdc0]
mov word [rdx + rax*2], cx
jmp 0x140080b9a
cmp dword [rsp + 0xdd8], 4
jl 0x140080c0b
xor eax, eax
test eax, eax
jne 0x140080c05
mov dword [rsp + 0x44], 1
jmp 0x140080c1f
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x10000
jg 0x140080c5f
movsxd rax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x44]
dec ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdc8]
mov eax, dword [rdx + rax*4]
mov rdx, qword [rsp + 0xdc8]
add eax, dword [rdx + rcx*4]
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
jmp 0x140080c15
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xdb8]
movzx eax, byte [rcx + rax]
shl eax, 8
mov word [rsp + 0x48], ax
mov eax, dword [rsp + 0xdd0]
dec eax
mov dword [rsp + 0x44], eax
jmp 0x140080c96
mov eax, dword [rsp + 0x44]
sub eax, 4
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 3
jl 0x140080e40
movzx eax, word [rsp + 0x48]
sar eax, 8
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdb0]
mov edx, dword [rsp + 0x44]
mov dword [rcx + rax*4], edx
movzx eax, word [rsp + 0x48]
sar eax, 8
mov ecx, dword [rsp + 0x44]
dec ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x44]
dec eax
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdb0]
mov dword [rdx + rcx*4], eax
movzx eax, word [rsp + 0x48]
sar eax, 8
mov ecx, dword [rsp + 0x44]
sub ecx, 2
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x44]
sub eax, 2
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdb0]
mov dword [rdx + rcx*4], eax
movzx eax, word [rsp + 0x48]
sar eax, 8
mov ecx, dword [rsp + 0x44]
sub ecx, 3
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x44]
sub eax, 3
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xdb0]
mov dword [rdx + rcx*4], eax
jmp 0x140080c8b
jmp 0x140080e4c
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140080eb6
movzx eax, word [rsp + 0x48]
sar eax, 8
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xdb8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xdc8]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdb0]
mov edx, dword [rsp + 0x44]
mov dword [rcx + rax*4], edx
jmp 0x140080e42
mov dword [rsp + 0x44], 0
jmp 0x140080eca
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xff
jg 0x140080f18
movsxd rax, dword [rsp + 0x44]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x100
jae 0x140080ef1
jmp 0x140080ef6
call fcn.140082328
mov rax, qword [rsp + 0x88]
mov byte [rsp + rax + 0xc90], 0
movsxd rax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x44]
mov dword [rsp + rax*4 + 0x90], ecx
jmp 0x140080ec0
mov dword [rsp + 0x54], 1
imul eax, dword [rsp + 0x54], 3
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x100
jle 0x140080f20
mov eax, dword [rsp + 0x54]
cdq
mov ecx, 3
idiv ecx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x44], eax
jmp 0x140080f59
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xff
jg 0x14008105d
movsxd rax, dword [rsp + 0x44]
mov eax, dword [rsp + rax*4 + 0x90]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
cdqe
mov eax, dword [rsp + rax*4 + 0x90]
inc eax
shl eax, 8
cdqe
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x40]
sub edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov ecx, dword [rsp + rcx*4 + 0x90]
shl ecx, 8
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdc8]
mov r8, qword [rsp + 0xdc8]
mov ecx, dword [r8 + rcx*4]
mov eax, dword [rdx + rax*4]
sub eax, ecx
mov ecx, dword [rsp + 0x68]
inc ecx
shl ecx, 8
movsxd rcx, ecx
mov edx, dword [rsp + 0x68]
shl edx, 8
movsxd rdx, edx
mov r8, qword [rsp + 0xdc8]
mov r9, qword [rsp + 0xdc8]
mov edx, dword [r9 + rdx*4]
mov ecx, dword [r8 + rcx*4]
sub ecx, edx
cmp eax, ecx
jbe 0x140081048
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x90]
mov dword [rsp + rcx*4 + 0x90], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x54]
dec eax
cmp dword [rsp + 0x40], eax
jg 0x140081043
jmp 0x140081048
jmp 0x140080f7f
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
mov dword [rsp + rax*4 + 0x90], ecx
jmp 0x140080f4f
cmp dword [rsp + 0x54], 1
jne 0x140080f35
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x44], 0
jmp 0x140081084
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xff
jg 0x1400815fe
movsxd rax, dword [rsp + 0x44]
mov eax, dword [rsp + rax*4 + 0x90]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x40], 0
jmp 0x1400810b6
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xff
jg 0x1400811ee
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
je 0x1400811e9
mov eax, dword [rsp + 0x50]
shl eax, 8
add eax, dword [rsp + 0x40]
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
and eax, 0x200000
test eax, eax
jne 0x1400811c5
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x60]
inc eax
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
dec eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x70], eax
jle 0x1400811c5
cmp dword [rsp + 0xdd8], 4
jl 0x140081151
xor eax, eax
test eax, eax
jne 0x14008114b
mov rax, qword [rsp + 0xde0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 2
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xdd0]
mov r8, qword [rsp + 0xdc0]
mov rdx, qword [rsp + 0xdb8]
mov rcx, qword [rsp + 0xdb0]
call fcn.14007fd00
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x70]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x7c]
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xde0]
cmp dword [rax], 0
jge 0x1400811c5
jmp 0x14008160e
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
bts eax, 0x15
movsxd rcx, dword [rsp + 0x60]
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
jmp 0x1400810ac
movsxd rax, dword [rsp + 0x50]
movzx eax, byte [rsp + rax + 0xc90]
test eax, eax
je 0x140081209
mov ecx, 0x3ee
call fcn.14002a310
mov dword [rsp + 0x40], 0
jmp 0x14008121d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xff
jg 0x14008127f
mov eax, dword [rsp + 0x40]
shl eax, 8
add eax, dword [rsp + 0x50]
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x490], eax
mov eax, dword [rsp + 0x40]
shl eax, 8
mov ecx, dword [rsp + 0x50]
lea eax, [rax + rcx + 1]
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
dec eax
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x890], eax
jmp 0x140081213
mov eax, dword [rsp + 0x50]
shl eax, 8
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
mov dword [rsp + 0x40], eax
jmp 0x1400812a7
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x50]
mov eax, dword [rsp + rax*4 + 0x490]
cmp dword [rsp + 0x40], eax
jge 0x14008134e
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdb0]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jge 0x1400812ed
mov eax, dword [rsp + 0xdd0]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xdb8]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x4c], al
movzx eax, byte [rsp + 0x4c]
movzx eax, byte [rsp + rax + 0xc90]
test eax, eax
jne 0x140081349
movzx eax, byte [rsp + 0x4c]
movsxd rax, dword [rsp + rax*4 + 0x490]
mov rcx, qword [rsp + 0xdb0]
mov edx, dword [rsp + 0x58]
mov dword [rcx + rax*4], edx
movzx eax, byte [rsp + 0x4c]
mov eax, dword [rsp + rax*4 + 0x490]
inc eax
movzx ecx, byte [rsp + 0x4c]
mov dword [rsp + rcx*4 + 0x490], eax
jmp 0x14008129d
mov eax, dword [rsp + 0x50]
inc eax
shl eax, 8
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
dec eax
mov dword [rsp + 0x40], eax
jmp 0x14008137a
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x50]
mov eax, dword [rsp + rax*4 + 0x890]
cmp dword [rsp + 0x40], eax
jle 0x140081421
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xdb0]
mov eax, dword [rcx + rax*4]
dec eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jge 0x1400813c0
mov eax, dword [rsp + 0xdd0]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xdb8]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x4c], al
movzx eax, byte [rsp + 0x4c]
movzx eax, byte [rsp + rax + 0xc90]
test eax, eax
jne 0x14008141c
movzx eax, byte [rsp + 0x4c]
movsxd rax, dword [rsp + rax*4 + 0x890]
mov rcx, qword [rsp + 0xdb0]
mov edx, dword [rsp + 0x58]
mov dword [rcx + rax*4], edx
movzx eax, byte [rsp + 0x4c]
mov eax, dword [rsp + rax*4 + 0x890]
dec eax
movzx ecx, byte [rsp + 0x4c]
mov dword [rsp + rcx*4 + 0x890], eax
jmp 0x140081370
movsxd rax, dword [rsp + 0x50]
mov eax, dword [rsp + rax*4 + 0x490]
dec eax
movsxd rcx, dword [rsp + 0x50]
cmp eax, dword [rsp + rcx*4 + 0x890]
je 0x14008146d
movsxd rax, dword [rsp + 0x50]
cmp dword [rsp + rax*4 + 0x490], 0
jne 0x140081463
movsxd rax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xdd0]
dec ecx
cmp dword [rsp + rax*4 + 0x890], ecx
je 0x14008146d
mov ecx, 0x3ef
call fcn.14002a310
mov dword [rsp + 0x40], 0
jmp 0x140081481
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xff
jg 0x1400814c2
mov eax, dword [rsp + 0x40]
shl eax, 8
add eax, dword [rsp + 0x50]
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
bts eax, 0x15
mov ecx, dword [rsp + 0x40]
shl ecx, 8
add ecx, dword [rsp + 0x50]
movsxd rcx, ecx
mov rdx, qword [rsp + 0xdc8]
mov dword [rdx + rcx*4], eax
jmp 0x140081477
movsxd rax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xc90], 1
cmp dword [rsp + 0x44], 0xff
jge 0x1400815f9
mov eax, dword [rsp + 0x50]
shl eax, 8
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x50]
inc eax
shl eax, 8
cdqe
mov rcx, qword [rsp + 0xdc8]
mov eax, dword [rcx + rax*4]
btr eax, 0x15
sub eax, dword [rsp + 0x80]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
movzx ecx, al
mov eax, dword [rsp + 0x78]
sar eax, cl
cmp eax, 0xfffe
jle 0x140081549
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
jmp 0x140081529
mov eax, dword [rsp + 0x78]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x14008155f
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400815dc
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0xdb0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x64]
movzx ecx, al
mov eax, dword [rsp + 0x40]
sar eax, cl
mov word [rsp + 0x5c], ax
movsxd rax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xdc0]
movzx edx, word [rsp + 0x5c]
mov word [rcx + rax*2], dx
cmp dword [rsp + 0x74], 0x22
jge 0x1400815d7
mov eax, dword [rsp + 0xdd0]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0xdc0]
movzx edx, word [rsp + 0x5c]
mov word [rcx + rax*2], dx
jmp 0x140081555
mov eax, dword [rsp + 0x78]
dec eax
mov ecx, dword [rsp + 0x64]
sar eax, cl
cmp eax, 0xffff
jle 0x1400815f9
mov ecx, 0x3ea
call fcn.14002a310
jmp 0x14008107a
cmp dword [rsp + 0xdd8], 4
jl 0x14008160e
xor eax, eax
test eax, eax
jne 0x140081608
mov rcx, qword [rsp + 0xd90]
xor rcx, rsp
call fcn.140082550
add rsp, 0xda8
ret