Function at 0x1400807e0
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 0x14008081d
xor eax, eax
test eax, eax
jne 0x140080817
mov dword [rsp + 0x44], 0x10000
jmp 0x140080831
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14008084e
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xdc8]
mov dword [rcx + rax*4], 0
jmp 0x140080827
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 0x140080884
mov eax, dword [rsp + 0x44]
sub eax, 4
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 3
jl 0x140080a05
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 0x140080879
jmp 0x140080a11
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140080a70
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 0x140080a07
mov dword [rsp + 0x44], 0
jmp 0x140080a84
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x22
jge 0x140080adb
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 0x140080a7a
cmp dword [rsp + 0xdd8], 4
jl 0x140080aeb
xor eax, eax
test eax, eax
jne 0x140080ae5
mov dword [rsp + 0x44], 1
jmp 0x140080aff
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x10000
jg 0x140080b3f
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 0x140080af5
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 0x140080b76
mov eax, dword [rsp + 0x44]
sub eax, 4
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 3
jl 0x140080d20
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 0x140080b6b
jmp 0x140080d2c
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140080d96
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 0x140080d22
mov dword [rsp + 0x44], 0
jmp 0x140080daa
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xff
jg 0x140080df8
movsxd rax, dword [rsp + 0x44]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x100
jae 0x140080dd1
jmp 0x140080dd6
call fcn.140082208
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 0x140080da0
mov dword [rsp + 0x54], 1
imul eax, dword [rsp + 0x54], 3
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x100
jle 0x140080e00
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 0x140080e39
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xff
jg 0x140080f3d
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 0x140080f28
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 0x140080f23
jmp 0x140080f28
jmp 0x140080e5f
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
mov dword [rsp + rax*4 + 0x90], ecx
jmp 0x140080e2f
cmp dword [rsp + 0x54], 1
jne 0x140080e15
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x44], 0
jmp 0x140080f64
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xff
jg 0x1400814de
movsxd rax, dword [rsp + 0x44]
mov eax, dword [rsp + rax*4 + 0x90]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x40], 0
jmp 0x140080f96
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xff
jg 0x1400810ce
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
je 0x1400810c9
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 0x1400810a5
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 0x1400810a5
cmp dword [rsp + 0xdd8], 4
jl 0x140081031
xor eax, eax
test eax, eax
jne 0x14008102b
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.14007fbe0
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 0x1400810a5
jmp 0x1400814ee
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 0x140080f8c
movsxd rax, dword [rsp + 0x50]
movzx eax, byte [rsp + rax + 0xc90]
test eax, eax
je 0x1400810e9
mov ecx, 0x3ee
call fcn.14002a1f0
mov dword [rsp + 0x40], 0
jmp 0x1400810fd
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xff
jg 0x14008115f
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 0x1400810f3
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 0x140081187
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 0x14008122e
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 0x1400811cd
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 0x140081229
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 0x14008117d
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 0x14008125a
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 0x140081301
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 0x1400812a0
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 0x1400812fc
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 0x140081250
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 0x14008134d
movsxd rax, dword [rsp + 0x50]
cmp dword [rsp + rax*4 + 0x490], 0
jne 0x140081343
movsxd rax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xdd0]
dec ecx
cmp dword [rsp + rax*4 + 0x890], ecx
je 0x14008134d
mov ecx, 0x3ef
call fcn.14002a1f0
mov dword [rsp + 0x40], 0
jmp 0x140081361
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xff
jg 0x1400813a2
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 0x140081357
movsxd rax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xc90], 1
cmp dword [rsp + 0x44], 0xff
jge 0x1400814d9
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 0x140081429
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
jmp 0x140081409
mov eax, dword [rsp + 0x78]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x14008143f
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400814bc
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 0x1400814b7
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 0x140081435
mov eax, dword [rsp + 0x78]
dec eax
mov ecx, dword [rsp + 0x64]
sar eax, cl
cmp eax, 0xffff
jle 0x1400814d9
mov ecx, 0x3ea
call fcn.14002a1f0
jmp 0x140080f5a
cmp dword [rsp + 0xdd8], 4
jl 0x1400814ee
xor eax, eax
test eax, eax
jne 0x1400814e8
mov rcx, qword [rsp + 0xd90]
xor rcx, rsp
call fcn.140082430
add rsp, 0xda8
ret