Function at 0x18001fa40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r9, r8
mov qword [rbp - 0x41], r8
mov r8d, dword [rcx + 0x754]
mov rbx, rcx
mov dword [rbp - 0x79], edx
cmp dword [rcx + 0x750], r8d
je 0x18001faa7
lea rdx, [r8 + r8*2]
add rdx, rdx
mov eax, dword [rcx + rdx*8 + 0x77c]
mov ecx, dword [rcx + rdx*8 + 0x780]
sub eax, r8d
mov dword [r9], ecx
mov ecx, dword [rbx + rdx*8 + 0x77c]
mov dword [rbx + 0x754], ecx
jmp 0x18002100b
xor eax, eax
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xe0], r13
mov qword [rcx + 0x750], rax
cmp dword [rcx + 0x331fc], eax
jne 0x18001fae6
lea rdx, [rbp - 0x61]
call fcn.18001f760
mov r9, qword [rbp - 0x41]
mov r13d, eax
mov r12d, dword [rbp - 0x61]
jmp 0x18001faf4
mov r13d, dword [rcx + 0x758]
mov r12d, dword [rcx + 0x75c]
mov edi, dword [rbx + 0x760]
mov dword [rsp + 0x28], r12d
mov dword [rbp - 0x69], r13d
cmp edi, 2
jae 0x18001fb19
mov dword [r9], 0xffffffff
mov eax, 1
jmp 0x180020ff3
mov rcx, qword [rbx + 0x30]
mov eax, 0x111
cmp edi, eax
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0xd8], r14
cmova edi, eax
mov qword [rsp + 0xd0], r15
call qword [rbx + 0x18]
movzx r14d, byte [rax - 1]
lea rcx, [rbp - 9]
mov r15, rbx
xor esi, esi
xor r11d, r11d
sub r15, rcx
lea r10, [rax - 1]
xor r9d, r9d
nop dword [rax]
lea rax, [rbp - 9]
mov r8, r10
add rax, r9
mov ecx, dword [r15 + rax + 0x33200]
mov dword [rax], ecx
inc ecx
sub r8, rcx
cmp r14b, byte [r8]
jne 0x18001fbc4
movzx eax, byte [r8 + 1]
cmp byte [r10 + 1], al
jne 0x18001fbc4
mov edx, 2
cmp edi, edx
jbe 0x18001fbb2
lea rcx, [r10 + 2]
sub r8, r10
nop dword [rax]
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
jne 0x18001fbb2
inc edx
inc rcx
cmp edx, edi
jb 0x18001fba0
mov eax, esi
mov dword [rbp + r9 + 0xf], edx
cmp edx, dword [rbp + rax*4 + 0xf]
jbe 0x18001fbcd
mov esi, r11d
jmp 0x18001fbcd
mov dword [rbp + r9 + 0xf], 0
inc r11d
add r9, 4
cmp r11d, 4
jb 0x18001fb60
mov ecx, dword [rbx + 0x331f8]
mov eax, esi
mov edi, dword [rbp + rax*4 + 0xf]
mov dword [rsp + 0x20], edi
cmp edi, ecx
jb 0x18001fc0f
mov rdx, qword [rbp - 0x41]
mov dword [rdx], esi
lea edx, [rdi - 1]
test edx, edx
je 0x18001fc08
add dword [rbx + 0x331fc], edx
mov rcx, qword [rbx + 0x30]
call qword [rbx + 0x28]
mov eax, edi
jmp 0x180020fdb
cmp r13d, ecx
jb 0x18001fc46
mov rdx, qword [rbp - 0x41]
lea eax, [r12 - 1]
mov eax, dword [rbx + rax*4 + 0x32964]
add eax, 4
mov dword [rdx], eax
lea edx, [r13 - 1]
test edx, edx
je 0x18001fc3e
add dword [rbx + 0x331fc], edx
mov rcx, qword [rbx + 0x30]
call qword [rbx + 0x28]
mov eax, r13d
jmp 0x180020fdb
mov ecx, dword [rbp - 9]
mov rax, r10
movzx esi, byte [r10]
inc ecx
sub rax, rcx
movzx r14d, byte [rax]
cmp r13d, 2
jae 0x18001fc7d
cmp sil, r14b
je 0x18001fc7d
cmp edi, 2
jae 0x18001fc7d
mov rdx, qword [rbp - 0x41]
mov eax, 1
mov dword [rdx], 0xffffffff
jmp 0x180020fdb
mov eax, dword [rbx + 0x33210]
mov ecx, 8
mov r12d, dword [rbp - 0x79]
mov dword [rbx + 0x768], eax
sub cl, byte [rbx + 0x33e5c]
mov eax, dword [rbp - 0x79]
and eax, dword [rbx + 0x33e68]
movzx edx, byte [r10 - 1]
and r12d, dword [rbx + 0x33e6c]
mov r15d, dword [rbx + 0x33210]
shr edx, cl
mov ecx, dword [rbx + 0x33e5c]
shl eax, cl
add edx, eax
movzx r8d, sil
mov rax, qword [rbx + 0x33e70]
lea ecx, [rdx + rdx*2]
shl ecx, 8
lea rdi, [rax + rcx*2]
cmp r15d, 7
jb 0x18001fd42
xor r11d, r11d
movzx r9d, r14b
mov r10d, 0x100
or r8d, r10d
nop dword [rax + rax]
mov ecx, r8d
add r9d, r9d
shr ecx, 8
mov eax, r10d
and eax, r9d
add eax, r10d
add ecx, eax
movzx edx, word [rdi + rcx*2]
mov ecx, r8d
shr ecx, 7
add r8d, r8d
and ecx, 1
shr rdx, 4
neg ecx
mov eax, r8d
sar rcx, 4
xor eax, r9d
and ecx, 0x7f
not eax
xor rdx, rcx
and r10d, eax
add r11d, dword [rbx + rdx*4 + 0x32764]
cmp r8d, 0x10000
jb 0x18001fcf0
jmp 0x18001fd8b
xor r9d, r9d
bts r8d, 8
nop word [rax + rax]
mov ecx, r8d
mov eax, r8d
shr ecx, 7
add r8d, r8d
and ecx, 1
shr rax, 8
neg ecx
sar rcx, 4
and ecx, 0x7f
movzx edx, word [rdi + rax*2]
shr rdx, 4
xor rdx, rcx
add r9d, dword [rbx + rdx*4 + 0x32764]
cmp r8d, 0x10000
jb 0x18001fd50
mov r11d, r9d
mov rax, r15
shl rax, 4
add rax, r12
movzx eax, word [rbx + rax*2 + 0x33e78]
shr rax, 4
mov r8d, dword [rbx + rax*4 + 0x32764]
mov dword [rbx + 0x7b0], 0xffffffff
add r8d, r11d
mov dword [rbx + 0x794], r8d
xor r11d, r11d
mov dword [rbx + 0x79c], r11d
mov edx, dword [rbx + 0x33210]
mov ecx, edx
shl rcx, 4
add rcx, r12
movzx eax, word [rbx + rcx*2 + 0x33e78]
xor rax, 0x7f0
shr rax, 4
mov r9d, dword [rbx + rax*4 + 0x32764]
movzx eax, word [rbx + rdx*2 + 0x33ff8]
xor rax, 0x7f0
mov dword [rbp - 0x65], r9d
shr rax, 4
mov r15d, dword [rbx + rax*4 + 0x32764]
add r15d, r9d
cmp r14b, sil
jne 0x18001fe58
movzx eax, word [rbx + rdx*2 + 0x34010]
movzx ecx, word [rbx + rcx*2 + 0x34058]
shr rcx, 4
shr rax, 4
mov edx, dword [rbx + rcx*4 + 0x32764]
add edx, dword [rbx + rax*4 + 0x32764]
add edx, r15d
cmp edx, r8d
jae 0x18001fe58
mov dword [rbx + 0x794], edx
mov dword [rbx + 0x7b0], r11d
mov dword [rbx + 0x79c], r11d
mov ecx, dword [rsp + 0x20]
cmp r13d, ecx
cmovae ecx, r13d
mov dword [rsp + 0x20], ecx
cmp ecx, 2
jae 0x18001fe82
mov eax, dword [rbx + 0x7b0]
mov rdx, qword [rbp - 0x41]
mov dword [rdx], eax
mov eax, 1
jmp 0x180020fdb
mov eax, dword [rbp - 9]
mov edx, ecx
mov dword [rbx + 0x7ac], r11d
mov dword [rbx + 0x784], eax
mov eax, dword [rbp - 5]
mov dword [rbx + 0x788], eax
mov eax, dword [rbp - 1]
mov dword [rbx + 0x78c], eax
mov eax, dword [rbp + 3]
mov dword [rbx + 0x790], eax
nop
mov eax, edx
dec edx
lea rcx, [rax + rax*2]
add rcx, rcx
mov dword [rbx + rcx*8 + 0x764], 0x40000000
cmp edx, 2
jae 0x18001feb0
mov esi, r11d
lea r14, [rbp + 0xf]
mov edi, dword [r14]
cmp edi, 2
jb 0x18001ff4d
mov r8d, dword [rbx + 0x33210]
mov r9d, r12d
mov edx, esi
mov rcx, rbx
call fcn.18001f830
add eax, r15d
imul r9, r12, 0x110
nop dword [rax + rax]
lea edx, [rdi - 2]
mov ecx, edi
add rdx, r9
xor r11d, r11d
mov r8d, dword [rbx + rdx*4 + 0x39128]
lea rdx, [rcx + rcx*2]
add rdx, rdx
add r8d, eax
cmp r8d, dword [rbx + rdx*8 + 0x764]
jae 0x18001ff46
mov dword [rbx + rdx*8 + 0x764], r8d
mov dword [rbx + rdx*8 + 0x77c], r11d
mov dword [rbx + rdx*8 + 0x780], esi
mov dword [rbx + rdx*8 + 0x76c], r11d
dec edi
cmp edi, 2
jae 0x18001ff00
inc esi
add r14, 4
cmp esi, 4
jb 0x18001fed2
mov r10d, dword [rbp + 0xf]
mov eax, dword [rbx + 0x33210]
mov r15d, dword [rbp - 0x65]
movzx ecx, word [rbx + rax*2 + 0x33ff8]
shr rcx, 4
add r15d, dword [rbx + rcx*4 + 0x32764]
cmp r10d, 2
inc r10d
jae 0x18001ff8d
mov r10d, 2
cmp r10d, dword [rbp - 0x69]
ja 0x18002009e
lea r8, [rbx + 0x32964]
mov r9d, r11d
cmp r10d, dword [r8]
jbe 0x18001ffb0
add r9d, 2
cmp r10d, dword [r8 + r9*4]
ja 0x18001ffa6
mov r13d, dword [rsp + 0x28]
imul r14, r12, 0x110
nop dword [rax]
lea eax, [r9 + 1]
mov edi, 3
mov r11d, dword [r8 + rax*4]
lea ecx, [r10 - 2]
mov eax, ecx
add rax, r14
mov esi, dword [rbx + rax*4 + 0x348e0]
add esi, r15d
cmp r10d, 5
cmovb edi, ecx
cmp r11d, 0x80
jae 0x180020002
mov ecx, edi
shl rcx, 7
add rcx, r11
mov eax, dword [rbx + rcx*4 + 0x33614]
jmp 0x18002004c
mov r8, r11
mov ecx, 0x7ffff
sub ecx, r11d
and r8d, 0xf
shr ecx, 0x1f
mov rax, r11
neg ecx
and ecx, 0xc
add ecx, 6
shr rax, cl
movzx eax, byte [rax + rbx + 0x30764]
lea edx, [rax + rcx*2]
mov eax, edi
shl rax, 6
add rdx, rax
mov eax, dword [rbx + rdx*4 + 0x33214]
add eax, dword [rbx + r8*4 + 0x33e14]
lea r8, [rbx + 0x32964]
lea edx, [rax + rsi]
mov eax, r10d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp edx, dword [rbx + rcx*8 + 0x764]
jae 0x180020084
mov dword [rbx + rcx*8 + 0x764], edx
lea eax, [r11 + 4]
xor edx, edx
mov dword [rbx + rcx*8 + 0x780], eax
mov dword [rbx + rcx*8 + 0x77c], edx
mov dword [rbx + rcx*8 + 0x76c], edx
mov eax, r9d
cmp r10d, dword [r8 + rax*4]
jne 0x180020096
add r9d, 2
cmp r9d, r13d
je 0x18002009e
inc r10d
jmp 0x18001ffc0
mov esi, 1
mov dword [rsp + 0x24], esi
cmp dword [rsp + 0x20], esi
je 0x180020fcc
lea r15, [0x180000000]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x30]
xor edi, edi
mov dword [rsp + 0x28], edi
call qword [rbx + 0x10]
mov rcx, qword [rbx + 0x30]
lea rdx, [rbx + 0x32964]
mov dword [rbx + 0x760], eax
call qword [rbx + 0x20]
mov dword [rbp - 0x61], eax
mov r14d, eax
test eax, eax
je 0x180020156
lea ecx, [rax - 2]
mov edi, dword [rbx + rcx*4 + 0x32964]
mov dword [rsp + 0x28], edi
cmp edi, dword [rbx + 0x331f8]
jne 0x180020156
mov rcx, qword [rbx + 0x30]
call qword [rbx + 0x18]
mov r8d, dword [rbx + 0x760]
lea ecx, [r14 - 1]
mov ecx, dword [rbx + rcx*4 + 0x32964]
lea r9, [rax - 1]
inc ecx
mov eax, 0x111
cmp r8d, eax
mov rdx, r9
cmova r8d, eax
sub rdx, rcx
cmp edi, r8d
jae 0x180020156
lea rcx, [r9 + rdi]
sub rdx, r9
nop
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x180020152
inc edi
inc rcx
cmp edi, r8d
jb 0x180020140
mov dword [rsp + 0x28], edi
inc dword [rbx + 0x331fc]
cmp edi, dword [rbx + 0x331f8]
jae 0x180020fbf
inc dword [rbp - 0x79]
lea rdi, [rbx + 0x764]
mov eax, esi
lea rcx, [rax + rax*2]
shl rcx, 4
add rdi, rcx
mov r8d, dword [rdi + 8]
mov edx, dword [rdi + 0x18]
test r8d, r8d
je 0x1800201ec
dec edx
cmp dword [rdi + 0xc], 0
je 0x1800201d2
mov eax, dword [rdi + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
cmp dword [rdi + 0x14], 4
mov eax, dword [rbx + rcx*8 + 0x768]
jae 0x1800201be
mov ecx, dword [r15 + rax*4 + 0x712b0]
mov eax, ecx
mov ecx, dword [r15 + rax*4 + 0x71220]
jmp 0x1800201fa
mov ecx, dword [r15 + rax*4 + 0x71250]
mov eax, ecx
mov ecx, dword [r15 + rax*4 + 0x71220]
jmp 0x1800201fa
lea rcx, [rdx + rdx*2]
add rcx, rcx
mov ecx, dword [rbx + rcx*8 + 0x768]
mov eax, ecx
mov ecx, dword [r15 + rax*4 + 0x71220]
jmp 0x1800201fa
lea rcx, [rdx + rdx*2]
add rcx, rcx
mov ecx, dword [rbx + rcx*8 + 0x768]
lea eax, [rsi - 1]
cmp edx, eax
jne 0x18002022b
cmp dword [rdi + 0x1c], 0
mov eax, ecx
jne 0x18002021a
mov r8d, dword [r15 + rax*4 + 0x71280]
mov dword [rbp - 0x7d], r8d
jmp 0x18002030d
mov r8d, dword [r15 + rax*4 + 0x71220]
mov dword [rbp - 0x7d], r8d
jmp 0x18002030d
test r8d, r8d
je 0x180020249
cmp dword [rdi + 0xc], 0
je 0x180020249
mov edx, dword [rdi + 0x10]
mov r9d, dword [rdi + 0x14]
mov eax, ecx
mov r8d, dword [r15 + rax*4 + 0x712b0]
jmp 0x180020267
mov r9d, dword [rdi + 0x1c]
mov eax, ecx
cmp r9d, 4
jae 0x18002025f
mov r8d, dword [r15 + rax*4 + 0x712b0]
jmp 0x180020267
mov r8d, dword [r15 + rax*4 + 0x71250]
mov eax, edx
lea r10, [rbx + 0x764]
mov dword [rbp - 0x7d], r8d
lea rcx, [rax + rax*2]
shl rcx, 4
add r10, rcx
cmp r9d, 4
jae 0x1800202f1
mov eax, r9d
mov r8d, 1
mov ecx, dword [r10 + rax*4 + 0x20]
mov dword [rbp - 9], ecx
cmp r9d, r8d
jb 0x1800202c4
nop dword [rax + rax]
mov edx, r8d
lea eax, [r8 - 1]
mov eax, dword [r10 + rax*4 + 0x20]
inc r8d
mov dword [rbp + rdx*4 - 9], eax
cmp r8d, r9d
jbe 0x1800202a0
cmp r8d, 4
jb 0x1800202c4
mov r8d, dword [rbp - 0x7d]
jmp 0x18002030d
mov eax, r8d
lea rdx, [r10 + 0x20]
lea rcx, [rbp - 9]
lea rcx, [rcx + rax*4]
lea rdx, [rdx + rax*4]
mov eax, 4
sub eax, r8d
mov r8d, eax
shl r8, 2
call fcn.18004f4a0
mov r8d, dword [rbp - 0x7d]
jmp 0x18002030d
lea eax, [r9 - 4]
mov dword [rbp - 9], eax
mov eax, dword [r10 + 0x20]
mov dword [rbp - 5], eax
mov eax, dword [r10 + 0x24]
mov dword [rbp - 1], eax
mov eax, dword [r10 + 0x28]
mov dword [rbp + 3], eax
mov eax, dword [rbp - 5]
xor r14d, r14d
mov r15d, dword [rbp - 9]
mov dword [rdi + 4], r8d
mov dword [rdi + 0x24], eax
mov eax, dword [rbp - 1]
mov dword [rdi + 0x28], eax
mov eax, dword [rbp + 3]
mov dword [rdi + 0x2c], eax
mov dword [rdi + 0x20], r15d
mov rcx, qword [rbx + 0x30]
mov r13d, dword [rdi]
call qword [rbx + 0x18]
mov ecx, dword [rbp - 0x79]
lea edx, [r15 + 1]
and ecx, dword [rbx + 0x33e6c]
mov r8d, dword [rbp - 0x7d]
movzx esi, byte [rax - 1]
lea r9, [rax - 1]
mov dword [rbp - 0x31], ecx
mov eax, r8d
shl rax, 4
mov r12, r9
add rax, rcx
mov qword [rbp - 0x21], rcx
mov qword [rbp - 0x39], rax
sub r12, rdx
movzx edx, byte [r9 - 1]
mov ecx, 8
sub cl, byte [rbx + 0x33e5c]
movzx eax, word [rbx + rax*2 + 0x33e78]
movzx r15d, byte [r12]
shr rax, 4
shr edx, cl
mov ecx, dword [rbx + 0x33e5c]
mov qword [rbp - 0x59], r9
mov r10d, dword [rbx + rax*4 + 0x32764]
mov eax, dword [rbp - 0x79]
add r10d, r13d
and eax, dword [rbx + 0x33e68]
shl eax, cl
add edx, eax
mov dword [rbp - 0x65], r10d
mov rax, qword [rbx + 0x33e70]
lea ecx, [rdx + rdx*2]
shl ecx, 8
cmp r8d, 7
movzx r8d, sil
lea rdi, [rax + rcx*2]
jb 0x180020436
xor r11d, r11d
movzx r9d, r15b
mov r10d, 0x100
or r8d, r10d
mov ecx, r8d
add r9d, r9d
shr ecx, 8
mov eax, r10d
and eax, r9d
add eax, r10d
add ecx, eax
movzx edx, word [rdi + rcx*2]
mov ecx, r8d
shr ecx, 7
add r8d, r8d
and ecx, 1
shr rdx, 4
neg ecx
mov eax, r8d
sar rcx, 4
xor eax, r9d
and ecx, 0x7f
not eax
xor rdx, rcx
and r10d, eax
add r11d, dword [rbx + rdx*4 + 0x32764]
cmp r8d, 0x10000
jb 0x1800203e0
mov r10d, dword [rbp - 0x65]
jmp 0x18002047b
xor r9d, r9d
bts r8d, 8
nop
mov ecx, r8d
mov eax, r8d
shr ecx, 7
add r8d, r8d
and ecx, 1
shr rax, 8
neg ecx
sar rcx, 4
and ecx, 0x7f
movzx edx, word [rdi + rax*2]
shr rdx, 4
xor rdx, rcx
add r9d, dword [rbx + rdx*4 + 0x32764]
cmp r8d, 0x10000
jb 0x180020440
mov r11d, r9d
add r10d, r11d
lea rdx, [rbx + 0x764]
mov r11d, dword [rsp + 0x24]
xor edi, edi
lea eax, [r11 + 1]
lea rcx, [rax + rax*2]
mov dword [rbp - 0x69], eax
shl rcx, 4
add rdx, rcx
cmp r10d, dword [rdx]
jae 0x1800204b8
mov dword [rdx], r10d
lea r14d, [rdi + 1]
mov dword [rdx + 0x18], r11d
mov dword [rdx + 0x1c], 0xffffffff
mov dword [rdx + 8], edi
mov rcx, qword [rbp - 0x39]
movzx eax, word [rbx + rcx*2 + 0x33e78]
xor rax, 0x7f0
shr rax, 4
mov r8d, dword [rbx + rax*4 + 0x32764]
mov eax, dword [rbp - 0x7d]
add r8d, r13d
mov r13d, eax
mov dword [rbp - 0x49], r8d
add rax, 0x19ffc
lea rax, [rbx + rax*2]
mov qword [rbp + 0xf], rax
movzx eax, word [rax]
xor rax, 0x7f0
shr rax, 4
mov r9d, dword [rbx + rax*4 + 0x32764]
add r9d, r8d
mov dword [rbp - 0x2d], r9d
cmp r15b, sil
jne 0x180020562
cmp dword [rdx + 0x18], r11d
jae 0x18002051e
cmp dword [rdx + 0x1c], 0
je 0x180020562
movzx ecx, word [rbx + rcx*2 + 0x34058]
movzx eax, word [rbx + r13*2 + 0x34010]
shr rcx, 4
shr rax, 4
mov r8d, dword [rbx + rcx*4 + 0x32764]
add r8d, dword [rbx + rax*4 + 0x32764]
add r8d, r9d
cmp r8d, dword [rdx]
ja 0x180020562
mov dword [rdx], r8d
mov r14d, 1
mov dword [rdx + 0x18], r11d
mov dword [rdx + 0x1c], edi
mov dword [rdx + 8], edi
mov ecx, dword [rbx + 0x760]
mov eax, 0xfff
sub eax, r11d
cmp eax, ecx
cmovb ecx, eax
mov dword [rbp - 0x65], ecx
cmp ecx, 2
jb 0x180020fa5
mov r8d, dword [rbx + 0x331f8]
cmp ecx, r8d
mov eax, r8d
cmovbe eax, ecx
mov dword [rbp - 0x71], eax
test r14d, r14d
jne 0x1800206e7
cmp r15b, sil
je 0x1800206e7
inc r8d
mov edx, 1
cmp r8d, ecx
cmova r8d, ecx
cmp r8d, edx
jbe 0x1800205d9
mov r9, qword [rbp - 0x59]
lea rcx, [r12 + 1]
sub r9, r12
movzx eax, byte [rcx]
cmp byte [r9 + rcx], al
jne 0x1800205d9
inc edx
inc rcx
cmp edx, r8d
jb 0x1800205c6
lea esi, [rdx - 1]
cmp esi, 2
jb 0x1800206e7
mov r9d, dword [rbp - 0x79]
lea rax, [0x180000000]
mov r8d, dword [rax + r13*4 + 0x71220]
lea r14d, [r11 + 1]
inc r9d
mov eax, r8d
and r9d, dword [rbx + 0x33e6c]
add r14d, esi
shl rax, 4
mov r15d, r9d
add rax, r15
movzx ecx, word [rbx + rax*2 + 0x33e78]
movzx eax, word [rbx + r8*2 + 0x33ff8]
xor rcx, 0x7f0
shr rcx, 4
xor rax, 0x7f0
shr rax, 4
mov edi, dword [rbx + rcx*4 + 0x32764]
add edi, dword [rbx + rax*4 + 0x32764]
add edi, r10d
mov r10d, dword [rsp + 0x20]
cmp r10d, r14d
jae 0x180020691
lea rcx, [r10 + r10*2]
mov eax, r14d
shl rcx, 4
lea rdx, [rbx + 0x764]
add rdx, rcx
sub eax, r10d
add r10d, eax
mov ecx, eax
mov dword [rsp + 0x20], r10d
nop dword [rax]
mov dword [rdx + 0x30], 0x40000000
lea rdx, [rdx + 0x30]
sub rcx, 1
jne 0x180020680
xor edx, edx
mov rcx, rbx
call fcn.18001f830
imul rcx, r15, 0x110
lea edx, [rsi - 2]
add rdx, rcx
add eax, dword [rbx + rdx*4 + 0x39128]
lea rdx, [r14 + r14*2]
add rdx, rdx
add eax, edi
cmp eax, dword [rbx + rdx*8 + 0x764]
jae 0x1800206e7
mov dword [rbx + rdx*8 + 0x764], eax
mov eax, dword [rbp - 0x69]
mov dword [rbx + rdx*8 + 0x77c], eax
xor eax, eax
mov dword [rbx + rdx*8 + 0x780], eax
mov qword [rbx + rdx*8 + 0x76c], 1
mov r10, qword [rbp - 0x59]
lea rax, [r13*4]
mov qword [rbp - 0x39], rax
mov r11d, 2
lea rax, [rbp - 9]
mov dword [rbp - 0x75], r11d
xor r14d, r14d
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x6d], r14d
mov ecx, dword [rax]
mov rsi, r10
mov r12d, dword [rbp - 0x71]
inc ecx
sub rsi, rcx
mov qword [rbp - 0x19], rsi
movzx eax, byte [rsi]
cmp byte [r10], al
jne 0x180020ad4
movzx eax, byte [rsi + 1]
cmp byte [r10 + 1], al
jne 0x180020ad4
mov edi, 2
cmp r12d, edi
jbe 0x180020762
mov rdx, r10
lea rcx, [rsi + 2]
sub rdx, rsi
movzx eax, byte [rcx]
cmp byte [rdx + rcx], al
jne 0x180020762
inc edi
inc rcx
cmp edi, r12d
jb 0x180020750
mov r13d, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
lea edx, [rdi + r13]
cmp r8d, edx
jae 0x1800207b1
lea rcx, [r8 + r8*2]
sub edx, r8d
shl rcx, 4
lea rax, [rbx + 0x764]
add rax, rcx
mov ecx, edx
add r8d, edx
mov dword [rsp + 0x20], r8d
nop dword [rax]
nop dword [rax + rax]
mov dword [rax + 0x30], 0x40000000
lea rax, [rax + 0x30]
sub rcx, 1
jne 0x1800207a0
mov r8d, dword [rbp - 0x7d]
mov edx, r14d
mov r9d, dword [rbp - 0x31]
mov rcx, rbx
mov r15d, edi
mov dword [rbp - 0x5d], r15d
call fcn.18001f830
imul rsi, qword [rbp - 0x21], 0x110
add eax, dword [rbp - 0x2d]
mov qword [rbp - 0x11], rsi
xor r9d, r9d
mov dword [rbp - 0x51], eax
lea edx, [rdi - 2]
add rdx, rsi
lea ecx, [rdi + r13]
lea rcx, [rcx + rcx*2]
add rcx, rcx
mov r8d, dword [rbx + rdx*4 + 0x39128]
add r8d, eax
cmp r8d, dword [rbx + rcx*8 + 0x764]
jae 0x180020826
mov dword [rbx + rcx*8 + 0x764], r8d
mov dword [rbx + rcx*8 + 0x77c], r13d
mov dword [rbx + rcx*8 + 0x780], r14d
mov dword [rbx + rcx*8 + 0x76c], r9d
dec edi
cmp edi, 2
jae 0x1800207e0
mov edx, dword [rbx + 0x331f8]
lea edi, [r15 + 1]
mov rsi, qword [rbp - 0x19]
test r14d, r14d
mov r10, qword [rbp - 0x59]
mov eax, edi
cmovne eax, dword [rbp - 0x75]
add edx, edi
cmp edx, dword [rbp - 0x65]
mov r11d, eax
mov dword [rbp - 0x75], eax
cmova edx, dword [rbp - 0x65]
cmp edi, edx
jae 0x180020878
mov ecx, edi
mov r8, r10
add rcx, rsi
sub r8, rsi
movzx eax, byte [rcx]
cmp byte [r8 + rcx], al
jne 0x180020878
inc edi
inc rcx
cmp edi, edx
jb 0x180020866
or eax, 0xffffffff
sub eax, r15d
add edi, eax
cmp edi, 2
jb 0x180020ad9
movzx r11d, byte [rsi + r15]
xor r14d, r14d
movzx r10d, byte [r10 + r15]
mov esi, 0x100
mov ecx, dword [rbp - 0x5d]
or r10d, esi
mov rax, qword [rbp - 0x59]
mov edx, dword [rbx + 0x33e5c]
mov r9d, dword [rbp - 0x79]
mov r13d, dword [rbx + 0x33e6c]
add r9d, r15d
mov r15, qword [rbx + 0x33e70]
mov r12d, r13d
and r12d, r9d
dec ecx
movzx r8d, byte [rcx + rax]
mov ecx, 8
mov eax, dword [rbx + 0x33e68]
sub cl, dl
shr r8d, cl
and eax, r9d
mov ecx, edx
shl eax, cl
add r8d, eax
lea r8d, [r8 + r8*2]
shl r8d, 8
nop
add r11d, r11d
mov eax, esi
and eax, r11d
mov ecx, r10d
shr ecx, 8
add eax, esi
add eax, ecx
mov ecx, r10d
shr ecx, 7
add rax, r8
and ecx, 1
add r10d, r10d
neg ecx
sar rcx, 4
movzx edx, word [r15 + rax*2]
and ecx, 0x7f
shr rdx, 4
mov eax, r10d
xor rdx, rcx
xor eax, r11d
not eax
and esi, eax
add r14d, dword [rbx + rdx*4 + 0x32764]
cmp r10d, 0x10000
jb 0x1800208f0
mov rax, qword [rbp - 0x39]
lea r10, [0x180000000]
mov r8d, dword [rax + r10 + 0x712b0]
mov eax, r12d
mov ecx, r8d
mov r12d, dword [rbp - 0x5d]
shl rcx, 4
mov r8d, dword [r10 + r8*4 + 0x71220]
add rcx, rax
mov r10d, dword [rbp - 0x79]
mov eax, r8d
shl rax, 4
inc r10d
add r10d, r12d
movzx edx, word [rbx + rcx*2 + 0x33e78]
and r10d, r13d
mov r13d, dword [rsp + 0x24]
lea ecx, [r12 - 2]
add rcx, qword [rbp - 0x11]
shr rdx, 4
mov r15d, r10d
add rax, r15
lea esi, [r13 + 1]
mov r9d, dword [rbx + rdx*4 + 0x32764]
add r9d, dword [rbx + rcx*4 + 0x39128]
movzx ecx, word [rbx + rax*2 + 0x33e78]
add r9d, r14d
add r9d, dword [rbp - 0x51]
xor rcx, 0x7f0
movzx eax, word [rbx + r8*2 + 0x33ff8]
xor rax, 0x7f0
shr rcx, 4
shr rax, 4
mov r14d, dword [rbx + rcx*4 + 0x32764]
add r14d, dword [rbx + rax*4 + 0x32764]
lea eax, [rdi + r12]
add r14d, r9d
add esi, eax
mov r9d, dword [rsp + 0x20]
cmp r9d, esi
jae 0x180020a41
lea rcx, [r9 + r9*2]
mov eax, esi
shl rcx, 4
lea rdx, [rbx + 0x764]
add rdx, rcx
sub eax, r9d
add r9d, eax
mov ecx, eax
mov dword [rsp + 0x20], r9d
nop word [rax + rax]
mov dword [rdx + 0x30], 0x40000000
lea rdx, [rdx + 0x30]
sub rcx, 1
jne 0x180020a30
mov r9d, r10d
xor edx, edx
mov rcx, rbx
call fcn.18001f830
mov r11d, dword [rbp - 0x75]
lea edx, [rdi - 2]
mov r10, qword [rbp - 0x59]
imul rcx, r15, 0x110
mov dword [rbp - 0x75], r11d
add rdx, rcx
add eax, dword [rbx + rdx*4 + 0x39128]
lea rdx, [rsi + rsi*2]
add eax, r14d
add rdx, rdx
mov r14d, dword [rbp - 0x6d]
cmp eax, dword [rbx + rdx*8 + 0x764]
jae 0x180020ace
mov dword [rbx + rdx*8 + 0x764], eax
mov eax, dword [rbp - 0x69]
add eax, r12d
mov dword [rbx + rdx*8 + 0x780], 0
mov dword [rbx + rdx*8 + 0x77c], eax
mov dword [rbx + rdx*8 + 0x76c], 1
mov dword [rbx + rdx*8 + 0x770], 1
mov dword [rbx + rdx*8 + 0x774], r13d
mov dword [rbx + rdx*8 + 0x778], r14d
mov dword [rbp - 0x75], r11d
mov r12d, dword [rbp - 0x71]
jmp 0x180020ad9
mov r13d, dword [rsp + 0x24]
mov rax, qword [rbp - 0x29]
inc r14d
add rax, 4
mov dword [rbp - 0x6d], r14d
mov qword [rbp - 0x29], rax
cmp r14d, 4
jb 0x180020710
mov ecx, dword [rsp + 0x28]
lea r14, [rbx + 0x32964]
cmp ecx, r12d
jbe 0x180020b23
xor edx, edx
mov ecx, r12d
cmp r12d, dword [r14]
jbe 0x180020b19
add edx, 2
cmp r12d, dword [r14 + rdx*4]
ja 0x180020b10
mov dword [r14 + rdx*4], r12d
add edx, 2
mov dword [rbp - 0x61], edx
cmp ecx, r11d
jb 0x180020fa5
mov rax, qword [rbp + 0xf]
lea edx, [rcx + r13]
mov r9d, dword [rbp - 0x49]
mov r8d, dword [rsp + 0x20]
movzx eax, word [rax]
shr rax, 4
mov eax, dword [rbx + rax*4 + 0x32764]
add r9d, eax
mov dword [rbp - 0x51], r9d
cmp r8d, edx
jae 0x180020b91
lea rcx, [r8 + r8*2]
sub edx, r8d
shl rcx, 4
lea rax, [rbx + 0x764]
add rax, rcx
mov ecx, edx
add r8d, edx
mov dword [rsp + 0x20], r8d
nop word [rax + rax]
mov dword [rax + 0x30], 0x40000000
lea rax, [rax + 0x30]
sub rcx, 1
jne 0x180020b80
xor r13d, r13d
cmp r11d, dword [r14]
jbe 0x180020baa
nop dword [rax]
add r13d, 2
cmp r11d, dword [r14 + r13*4]
ja 0x180020ba0
imul r8, qword [rbp - 0x21], 0x110
mov edi, dword [rsp + 0x24]
lea eax, [r13 + 1]
mov r15d, dword [r14 + rax*4]
mov ecx, 0x7ffff
mov esi, dword [rbp - 0x79]
sub ecx, r15d
shr ecx, 0x1f
mov eax, r15d
neg ecx
mov qword [rbp + 0xf], r8
and ecx, 0xc
lea r10d, [rdi - 1]
add ecx, 6
mov dword [rbp - 0x71], r10d
shr rax, cl
dec esi
mov dword [rbp - 0x6d], esi
movzx eax, byte [rax + rbx + 0x30764]
lea edx, [rax + rcx*2]
mov dword [rsp + 0x28], edx
nop word [rax + rax]
lea ecx, [r11 - 2]
mov eax, ecx
add rax, r8
mov r8d, dword [rbx + rax*4 + 0x348e0]
mov eax, 3
add r8d, r9d
cmp r11d, 5
cmovb eax, ecx
mov ecx, eax
cmp r15d, 0x80
jae 0x180020c3e
shl rcx, 7
mov eax, r15d
add rcx, rax
mov edx, dword [rbx + rcx*4 + 0x33614]
jmp 0x180020c5b
mov eax, edx
shl rcx, 6
add rcx, rax
mov eax, r15d
and eax, 0xf
mov edx, dword [rbx + rcx*4 + 0x33214]
add edx, dword [rbx + rax*4 + 0x33e14]
lea r9d, [r11 + 1]
add edx, r8d
lea eax, [r10 + r9]
mov dword [rbp - 0x4d], edx
lea rcx, [rax + rax*2]
mov dword [rbp - 0x5d], r9d
shl rcx, 4
add rcx, rbx
cmp edx, dword [rcx + 0x764]
jae 0x180020ca0
lea eax, [r15 + 4]
mov dword [rcx + 0x764], edx
mov dword [rcx + 0x780], eax
mov dword [rcx + 0x77c], edi
mov dword [rcx + 0x76c], 0
cmp r11d, dword [r14 + r13*4]
jne 0x180020f8d
mov r8, qword [rbp - 0x59]
lea ecx, [r15 + 1]
mov edx, dword [rbx + 0x331f8]
mov r10, r8
add edx, r9d
sub r10, rcx
cmp edx, dword [rbp - 0x65]
mov edi, r9d
cmova edx, dword [rbp - 0x65]
cmp r9d, edx
jae 0x180020cf6
mov ecx, r9d
add rcx, r10
sub r8, r10
nop dword [rax]
movzx eax, byte [rcx]
cmp byte [r8 + rcx], al
jne 0x180020cf2
inc edi
inc rcx
cmp edi, edx
jb 0x180020ce0
mov r8, qword [rbp - 0x59]
or eax, 0xffffffff
sub eax, r11d
add edi, eax
cmp edi, 2
jb 0x180020f2e
mov eax, dword [rbx + 0x33e6c]
add r9d, esi
mov edx, dword [rbx + 0x33e5c]
and eax, r9d
and r9d, dword [rbx + 0x33e68]
xor r14d, r14d
mov r12, qword [rbx + 0x33e70]
mov ecx, 8
mov dword [rbp - 0x49], eax
sub cl, dl
mov eax, r11d
mov esi, 0x100
movzx r11d, byte [r10 + rax]
movzx r10d, byte [r8 + rax]
mov eax, dword [rbp - 0x75]
or r10d, esi
dec eax
movzx r8d, byte [rax + r8]
shr r8d, cl
mov ecx, edx
shl r9d, cl
add r8d, r9d
lea r8d, [r8 + r8*2]
shl r8d, 8
nop word [rax + rax]
add r11d, r11d
mov eax, esi
and eax, r11d
mov ecx, r10d
shr ecx, 8
add eax, esi
add eax, ecx
mov ecx, r10d
shr ecx, 7
add rax, r8
and ecx, 1
add r10d, r10d
neg ecx
sar rcx, 4
movzx edx, word [r12 + rax*2]
and ecx, 0x7f
shr rdx, 4
mov eax, r10d
xor rdx, rcx
xor eax, r11d
not eax
and esi, eax
add r14d, dword [rbx + rdx*4 + 0x32764]
cmp r10d, 0x10000
jb 0x180020d70
mov rax, qword [rbp - 0x39]
lea r10, [0x180000000]
mov r9d, dword [rbp - 0x49]
mov esi, dword [rsp + 0x24]
inc esi
mov edx, dword [rax + r10 + 0x71250]
mov ecx, edx
shl rcx, 4
add rcx, r9
mov r10d, dword [r10 + rdx*4 + 0x71220]
movzx eax, word [rbx + rcx*2 + 0x33e78]
shr rax, 4
mov r8d, dword [rbx + rax*4 + 0x32764]
mov eax, r10d
add r8d, r14d
shl rax, 4
add r8d, dword [rbp - 0x4d]
inc r9d
and r9d, dword [rbx + 0x33e6c]
mov r12d, r9d
add rax, r12
movzx ecx, word [rbx + rax*2 + 0x33e78]
movzx eax, word [rbx + r10*2 + 0x33ff8]
xor rcx, 0x7f0
xor rax, 0x7f0
shr rcx, 4
shr rax, 4
mov r14d, dword [rbx + rcx*4 + 0x32764]
add r14d, dword [rbx + rax*4 + 0x32764]
mov eax, dword [rbp - 0x75]
add r14d, r8d
mov r8d, dword [rsp + 0x20]
add eax, edi
add esi, eax
cmp r8d, esi
jae 0x180020ea1
lea rcx, [r8 + r8*2]
mov eax, esi
shl rcx, 4
lea rdx, [rbx + 0x764]
add rdx, rcx
sub eax, r8d
add r8d, eax
mov ecx, eax
mov dword [rsp + 0x20], r8d
nop dword [rax]
mov dword [rdx + 0x30], 0x40000000
lea rdx, [rdx + 0x30]
sub rcx, 1
jne 0x180020e90
mov r8d, r10d
xor edx, edx
mov rcx, rbx
call fcn.18001f830
mov r9d, dword [rbp - 0x5d]
lea edx, [rdi - 2]
mov edi, dword [rsp + 0x24]
imul rcx, r12, 0x110
add rdx, rcx
add eax, dword [rbx + rdx*4 + 0x39128]
lea rdx, [rsi + rsi*2]
mov esi, dword [rbp - 0x6d]
add eax, r14d
add rdx, rdx
lea r14, [rbx + 0x32964]
cmp eax, dword [rbx + rdx*8 + 0x764]
jae 0x180020f32
mov dword [rbx + rdx*8 + 0x764], eax
lea eax, [rdi + r9]
mov dword [rbx + rdx*8 + 0x77c], eax
lea eax, [r15 + 4]
mov dword [rbx + rdx*8 + 0x778], eax
mov dword [rbx + rdx*8 + 0x780], 0
mov dword [rbx + rdx*8 + 0x76c], 1
mov dword [rbx + rdx*8 + 0x770], 1
mov dword [rbx + rdx*8 + 0x774], edi
jmp 0x180020f32
mov edi, dword [rsp + 0x24]
add r13d, 2
cmp r13d, dword [rbp - 0x61]
je 0x180020fa5
mov r10d, dword [rbp - 0x71]
lea eax, [r13 + 1]
mov r15d, dword [r14 + rax*4]
cmp r15d, 0x80
jb 0x180020f8d
mov r8, qword [rbp + 0xf]
mov ecx, 0x7ffff
sub ecx, r15d
mov dword [rbp - 0x75], r9d
shr ecx, 0x1f
mov eax, r15d
neg ecx
mov r11d, r9d
mov r9d, dword [rbp - 0x51]
and ecx, 0xc
add ecx, 6
shr rax, cl
movzx eax, byte [rax + rbx + 0x30764]
lea edx, [rax + rcx*2]
mov dword [rsp + 0x28], edx
jmp 0x180020c00
mov edx, dword [rsp + 0x28]
mov r11d, r9d
mov r8, qword [rbp + 0xf]
mov dword [rbp - 0x75], r9d
mov r9d, dword [rbp - 0x51]
jmp 0x180020c00
mov esi, dword [rbp - 0x69]
lea r15, [0x180000000]
mov dword [rsp + 0x24], esi
cmp esi, dword [rsp + 0x20]
jne 0x1800200c0
jmp 0x180020fcc
mov dword [rbx + 0x75c], r14d
mov dword [rbx + 0x758], edi
mov rdx, qword [rbp - 0x41]
mov r8d, esi
mov rcx, rbx
call fcn.18001f900
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0x128]
mov r15, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18004d010
add rsp, 0xf8
pop rbx
pop rbp
ret