Function at 0x18002682c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x320
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
mov rax, qword [0x180142010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov dword [rsp + 0x6c], r8d
mov rdi, rdx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x58], rcx
xor r15d, r15d
cmp dword [rdx + 0x494], r15d
jge 0x1800268bf
lea edx, [r15 + 2]
mov rcx, rdi
test byte [rdi], dl
jne 0x1800268b1
mov edx, 0xf5
lea r8d, [r15 + 0x1b]
jmp 0x1800268b4
mov r8d, edx
call fcn.180023c98
mov dword [rdi + 0x494], eax
cmp dword [rdi + 0x498], r15d
jge 0x1800268e4
test byte [rdi], 4
jne 0x1800268e4
mov edx, 0x41
lea r8d, [rdx - 1]
mov rcx, rdi
call fcn.180023c98
mov dword [rdi + 0x498], eax
mov qword [rdi + 8], r15
mov qword [rdi + 0x40], r15
mov qword [rdi + 0x48], r15
mov qword [rdi + 0x50], r15
mov rcx, rdi
call fcn.18002318c
mov byte [rsp + 0x68], r15b
mov dword [rbp - 0xc], r15d
mov r14, r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 8], r15
mov dword [rbp - 0x1c], r15d
mov r13, r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x18], r15
mov r12d, dword [rdi + 0x78]
mov dword [rbp - 0x70], r12d
mov eax, 8
lea esi, [rax - 7]
test r12d, r12d
jle 0x180026973
mov ebx, r12d
cmp r12d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x180026973
mov rax, qword [0x180145c50]
test rax, rax
je 0x180026953
add dword [rax + 0xf4], esi
movsxd rax, ebx
imul rcx, rax, 0x70
call qword [0x1800af428]
mov r14, rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], ebx
mov eax, 8
mov dword [rbp - 0x10], r12d
mov r15d, dword [rdi + 0x58]
mov dword [rsp + 0x64], r15d
test r15d, r15d
jle 0x1800269bf
mov ebx, r15d
cmp r15d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x1800269bf
mov rax, qword [0x180145c50]
test rax, rax
je 0x1800269a4
add dword [rax + 0xf4], esi
movsxd rcx, ebx
shl rcx, 5
call qword [0x1800af428]
mov r13, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], ebx
mov dword [rbp - 0x20], r15d
imul ecx, r12d, 0x70
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call fcn.1800adcc4
mov ecx, r15d
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, r13
call fcn.1800adcc4
xor r9d, r9d
mov dword [rsp + 0x74], r9d
or r10d, 0xffffffff
cmp dword [rdi + 0x78], r9d
jle 0x180026b1c
mov r12d, r9d
lea rbx, [r14 + 0x44]
mov r14, qword [rdi + 0x80]
add r14, r12
mov dword [rbx - 4], r10d
mov r8d, r9d
cmp dword [rdi + 0x58], r9d
jle 0x180026b11
mov edx, r10d
mov r15d, 8
mov eax, edx
cmp edx, r10d
jne 0x180026a58
mov edx, r10d
mov rax, qword [rdi + 0x60]
mov rcx, qword [r9 + rax]
cmp qword [r14 + 0x80], rcx
jne 0x180026a4a
mov dword [rbx - 4], r8d
mov edx, r8d
add r8d, esi
add r9, r15
mov eax, edx
cmp r8d, dword [rdi + 0x58]
jl 0x180026a28
cmp eax, r10d
mov r15d, dword [rsp + 0x64]
je 0x180026b11
mov r9d, dword [rsp + 0x6c]
mov r8, r14
mov rdx, qword [rbp - 0x58]
lea rcx, [rbx - 0x44]
call fcn.1800260f8
xor r9d, r9d
test al, al
je 0x180026b11
mov eax, dword [r14 + 0x4c]
shr eax, 8
and al, sil
or byte [rsp + 0x68], al
movsxd rdx, dword [rbx - 4]
shl rdx, 5
mov r8, qword [rbp - 0x60]
add rdx, r8
lea rcx, [0x180135bac]
cmp qword [r14 + 0x38], r9
cmovne rcx, qword [r14 + 0x38]
mov qword [rbx - 0xc], rcx
jmp 0x180026acf
cmp word [rcx + 2], r9w
je 0x180026ad5
movzx eax, word [rcx + 2]
cmp dword [rbx], eax
cmovge eax, dword [rbx]
mov dword [rbx], eax
add rcx, 4
cmp word [rcx], r9w
jne 0x180026ab9
add dword [rdx], esi
mov eax, dword [rbx]
cmp dword [rdx + 4], eax
cmovge eax, dword [rdx + 4]
mov dword [rdx + 4], eax
mov ecx, dword [rsp + 0x74]
add ecx, esi
mov dword [rsp + 0x74], ecx
add rbx, 0x70
add r12, 0x88
cmp ecx, dword [rdi + 0x78]
mov r10d, 0xffffffff
jl 0x180026a04
mov r14, qword [rbp - 0x78]
mov r12d, dword [rbp - 0x70]
jmp 0x180026b20
xor r14d, r14d
mov sil, r14b
jmp 0x180027a13
mov r8, qword [rbp - 0x60]
mov r13d, r9d
mov eax, r12d
mov qword [rsp + 0x78], rax
test r12d, r12d
jle 0x180026da6
add r14, 0x48
mov qword [rbp - 0x68], r12
movsxd r15, dword [r14 - 8]
shl r15, 5
add r15, r8
mov edx, dword [r14 - 4]
add edx, 0x20
sar edx, 5
lea rcx, [r14 + 8]
call fcn.18001d6b4
movsxd r8, dword [r14 + 8]
shl r8, 2
xor edx, edx
mov rcx, qword [r14 + 0x10]
call fcn.1800adcc4
lea rbx, [r15 + 0x10]
xor r9d, r9d
cmp dword [rbx], r9d
jne 0x180026ba0
mov edx, dword [r15 + 4]
add edx, 0x20
sar edx, 5
mov rcx, rbx
call fcn.18001d6b4
movsxd r8, dword [rbx]
shl r8, 2
xor edx, edx
mov rcx, qword [rbx + 8]
call fcn.1800adcc4
xor r9d, r9d
mov rbx, qword [r14 - 0x10]
cmp word [rbx], r9w
je 0x180026c3d
cmp word [rbx + 2], r9w
je 0x180026c39
movzx r12d, word [rbx]
movzx eax, word [rbx + 2]
cmp r12d, eax
ja 0x180026c2b
movsxd rdx, r12d
sar rdx, 5
mov qword [rbp - 0x58], rdx
mov ecx, r12d
and ecx, 0x1f
mov r8d, esi
shl r8d, cl
mov dword [rsp + 0x6c], r8d
mov rax, qword [r15 + 0x18]
test dword [rax + rdx*4], r8d
jne 0x180026c1f
mov edx, r12d
mov rcx, qword [r14 - 0x30]
call fcn.1800569fc
xor r9d, r9d
test eax, eax
je 0x180026c1f
add dword [r14], esi
add dword [r15 + 8], esi
mov rax, qword [r14 + 0x10]
mov rcx, qword [rbp - 0x58]
mov edx, dword [rsp + 0x6c]
or dword [rax + rcx*4], edx
mov rax, qword [r15 + 0x18]
or dword [rax + rcx*4], edx
add r13d, esi
add r12d, esi
movzx eax, word [rbx + 2]
cmp r12d, eax
jle 0x180026bc6
add rbx, 4
cmp word [rbx], r9w
jne 0x180026bae
mov r12, qword [rbp - 0x68]
add r14, 0x70
sub r12, rsi
mov qword [rbp - 0x68], r12
mov r8, qword [rbp - 0x60]
jne 0x180026b3c
mov rbx, qword [rbp - 0x78]
add rbx, 0x60
mov rdi, qword [rsp + 0x78]
mov qword [rbp - 0x80], rdi
mov edx, dword [rbx - 0x18]
mov rcx, rbx
call fcn.180027bd8
mov r12, qword [rbx - 8]
movsxd rax, dword [rbx - 0x10]
lea rax, [r12 + rax*4]
mov qword [rbp - 0x68], rax
mov r15, r12
cmp r12, rax
jae 0x180026d59
mov rdi, rax
xor edx, edx
mov eax, dword [r15]
mov dword [rsp + 0x6c], eax
test eax, eax
je 0x180026d48
mov r14d, edx
mov edi, 8
bt eax, r14d
jae 0x180026d37
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x30], rax
lea rcx, [r15*8]
lea rax, [r12*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, r14d
movzx eax, cx
mov dword [rbp + 0x28], eax
mov r8d, dword [rbx]
mov ecx, dword [rbx + 4]
cmp r8d, ecx
jne 0x180026d0e
inc r8d
test ecx, ecx
je 0x180026cf8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180026cfa
mov eax, edi
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
mov rcx, rbx
call fcn.180027bd8
xor edx, edx
movsxd rax, dword [rbx]
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm6
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd xmm1, qword [rbp + 0x30]
movsd qword [rax + rcx*8 + 0x20], xmm1
add dword [rbx], esi
mov eax, dword [rsp + 0x6c]
add r14d, esi
cmp r14d, 0x20
jb 0x180026ca6
mov rdi, qword [rbp - 0x68]
add r15, 4
cmp r15, rdi
jb 0x180026c8f
mov rdi, qword [rbp - 0x80]
mov rcx, qword [rbx - 8]
xor r9d, r9d
test rcx, rcx
je 0x180026d88
mov qword [rbx - 0x10], r9
mov rax, qword [0x180145c50]
test rax, rax
je 0x180026d7b
dec dword [rax + 0xf4]
call qword [0x1800af430]
xor r9d, r9d
mov qword [rbx - 8], r9
add rbx, 0x70
sub rdi, rsi
mov qword [rbp - 0x80], rdi
jne 0x180026c63
mov rdi, qword [rbp - 0x48]
mov r15d, dword [rsp + 0x64]
mov r12d, dword [rbp - 0x70]
test r15d, r15d
jle 0x180026deb
mov rbx, qword [rbp - 0x60]
add rbx, 0x18
mov r14d, r15d
xor r15d, r15d
mov rcx, qword [rbx]
test rcx, rcx
je 0x180026de0
mov qword [rbx - 8], r15
mov rax, qword [0x180145c50]
test rax, rax
je 0x180026dd7
dec dword [rax + 0xf4]
call qword [0x1800af430]
mov qword [rbx], r15
add rbx, 0x20
sub r14, rsi
jne 0x180026db9
jmp 0x180026dee
xor r15d, r15d
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x180026e1f
and qword [rbp - 0x20], 0
mov rax, qword [0x180145c50]
test rax, rax
je 0x180026e0e
dec dword [rax + 0xf4]
call qword [0x1800af430]
mov rcx, r15
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x18], rcx
mov dword [rbp + 4], r15d
mov r14, r15
mov qword [rbp - 0x68], r15
mov qword [rbp + 8], r15
test r13d, r13d
jle 0x180026e76
mov ebx, r13d
mov eax, 8
cmp r13d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x180026e76
mov rax, qword [0x180145c50]
test rax, rax
je 0x180026e57
add dword [rax + 0xf4], esi
movsxd rax, ebx
lea rcx, [rax + rax*2]
shl rcx, 3
call qword [0x1800af428]
mov r14, rax
mov qword [rbp - 0x68], rax
mov qword [rbp + 8], rax
mov dword [rbp + 4], ebx
mov dword [rbp], r13d
lea ecx, [r13*2]
add ecx, r13d
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call fcn.1800adcc4
mov dword [rsp + 0x70], r15d
mov dword [rbp + 0x3c], r15d
mov qword [rbp + 0x40], r15
mov rax, qword [0x180145c50]
test rax, rax
je 0x180026eb4
add dword [rax + 0xf4], esi
mov ecx, 0x40000
call qword [0x1800af428]
mov rbx, rax
mov rcx, qword [0x180145c50]
test rcx, rcx
je 0x180026ed4
add dword [rcx + 0xf4], esi
mov ecx, 0x40
call qword [0x1800af428]
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x3c], 8
mov qword [rax], rbx
mov eax, esi
mov dword [rsp + 0x74], eax
mov dword [rbp + 0x38], eax
mov ecx, r15d
mov dword [rsp + 0x64], ecx
mov r9d, r15d
movss xmm6, dword [0x180139cc8]
test r12d, r12d
jle 0x18002724d
mov r8, r15
mov qword [rbp - 0x80], r15
mov rbx, qword [rbp - 0x78]
add rbx, 0x60
mov r10d, 0xff
mov rax, qword [rsp + 0x78]
mov rdx, qword [rdi + 0x80]
cmp dword [rbx - 0x18], r15d
je 0x18002722c
movsxd rax, r9d
lea rcx, [rax + rax*2]
lea rax, [r14 + rcx*8]
mov qword [rbx - 0x30], rax
add r9d, dword [rbx - 0x18]
mov dword [rbp - 0x4c], r9d
movss xmm1, dword [r8 + rdx + 0x50]
ucomiss xmm1, xmm6
jp 0x180026f6c
jne 0x180026f6c
mov byte [rsp + 0x60], r15b
jmp 0x180026fac
mov byte [rsp + 0x60], sil
mov edx, r15d
lea r8, [rbp + 0xa0]
mov eax, edx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm1
cvttss2si rax, xmm0
movzx ecx, al
cmp eax, r10d
cmova ecx, r10d
mov byte [r8], cl
add edx, esi
add r8, rsi
cmp edx, 0x100
jb 0x180026f7b
mov r8, qword [rbp - 0x80]
mov eax, dword [rdi + 0x14]
mov dword [rbp - 0x50], eax
cmp dword [rbx], r15d
jle 0x180027223
mov r13, r15
mov edi, r15d
mov r12, qword [rbx + 8]
mov edx, dword [r15 + r12 + 0x18]
mov rcx, qword [rbx - 0x48]
call fcn.1800569fc
test eax, eax
je 0x1800271f2
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.180054238
test eax, eax
jne 0x1800271f2
mov rax, qword [rbx - 0x48]
mov r14, qword [rax + 0x78]
test byte [rbx - 0x40], 0x20
je 0x18002700c
mov rcx, r14
call fcn.180059860
mov rax, qword [rbx - 0x48]
mov rcx, rax
test byte [rbx - 0x40], 0x40
je 0x18002704b
test r14, r14
je 0x18002704b
cmp dword [r14 + 0x60], 0x6f75746c
jne 0x18002704b
mov eax, 0x10000
mov dword [rbp - 0x38], eax
mov qword [rbp - 0x34], 0x366a
mov dword [rbp - 0x2c], eax
lea rdx, [rbp - 0x38]
lea rcx, [r14 + 0x98]
call fcn.18005781c
mov rcx, qword [rbx - 0x48]
lea rax, [r14 + 0x30]
test rax, rax
je 0x1800271f2
mov r14, qword [rcx + 0x78]
test r14, r14
je 0x1800271f2
mov rax, qword [r14 + 8]
test rax, rax
je 0x1800271f2
mov rax, qword [rax + 0x90]
mov r8d, dword [rbx - 0x38]
mov rdx, r14
mov rcx, qword [rax + 8]
call fcn.180056ae4
xor r11d, r11d
test eax, eax
jne 0x1800271f2
mov rax, qword [rbx - 0x48]
mov r10, qword [rax + 0x78]
add r10, 0x68
mov qword [rbp - 0x28], r10
mov r8d, dword [r10 + 4]
mov dword [r15 + r12], r8d
mov r9d, dword [r10]
mov dword [r15 + r12 + 4], r9d
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [r15 + r12 + 8], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [r15 + r12 + 0xc], eax
mov eax, dword [r14 + 0x58]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r15 + r12 + 0x10], xmm0
cmp byte [r10 + 0x1a], 7
sete al
mov byte [r15 + r12 + 0x14], al
imul r9d, r8d
shl r9d, 2
mov dword [rsp + 0x6c], r9d
mov r14d, dword [rsp + 0x70]
lea eax, [r9 + r14]
mov ecx, 0x40000
cmp eax, ecx
jle 0x18002716f
mov r14d, r11d
mov rax, qword [0x180145c50]
test rax, rax
je 0x18002713e
add dword [rax + 0xf4], esi
call qword [0x1800af428]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x38]
call fcn.18001d5e4
mov rax, qword [rbp + 0x40]
mov qword [rbp - 0x40], rax
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x74], eax
mov r9d, dword [rsp + 0x6c]
mov r10, qword [rbp - 0x28]
jmp 0x180027173
mov eax, dword [rsp + 0x74]
dec eax
cdqe
movsxd rcx, r14d
mov rdx, qword [rbp - 0x40]
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [r15 + r12 + 0x20], r8
add r14d, r9d
mov dword [rsp + 0x70], r14d
mov al, byte [rsp + 0x60]
neg al
sbb rcx, rcx
lea rax, [rbp + 0xa0]
and rcx, rax
mov qword [rsp + 0x20], rcx
mov r9d, dword [r15 + r12]
mov rdx, r10
call fcn.180026308
mov ecx, dword [r15 + r12]
add ecx, dword [rbp - 0x50]
mov rax, qword [rbx - 0x30]
mov dword [rax + r13 + 4], ecx
mov ecx, dword [r15 + r12 + 4]
add ecx, dword [rbp - 0x50]
mov rax, qword [rbx - 0x30]
mov dword [rax + r13 + 8], ecx
mov rcx, qword [rbx - 0x30]
mov eax, dword [rcx + r13 + 8]
imul eax, dword [rcx + r13 + 4]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov dword [rsp + 0x64], ecx
jmp 0x1800271f6
mov ecx, dword [rsp + 0x64]
add edi, esi
add r15, 0x28
add r13, 0x18
cmp edi, dword [rbx]
jl 0x180026fc1
mov rdi, qword [rbp - 0x48]
mov r8, qword [rbp - 0x80]
mov r9d, dword [rbp - 0x4c]
mov r14, qword [rbp - 0x68]
xor r15d, r15d
mov r10d, 0xff
jmp 0x180027227
mov ecx, dword [rsp + 0x64]
mov rax, qword [rsp + 0x78]
add rbx, 0x70
add r8, 0x88
mov qword [rbp - 0x80], r8
sub rax, rsi
mov qword [rsp + 0x78], rax
jne 0x180026f2f
mov r12d, dword [rbp - 0x70]
mov r13, qword [rbp - 0x78]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call fcn.1800adee8
cvttss2si eax, xmm0
add eax, esi
mov dword [rdi + 0x44], r15d
mov ebx, dword [rdi + 0x10]
test ebx, ebx
jg 0x1800272a7
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov ebx, 0x200
mov eax, 0x400
comiss xmm0, dword [0x180139e2c]
cmovae ebx, eax
mov eax, 0x800
comiss xmm0, dword [0x180139e38]
cmovae ebx, eax
mov eax, 0x1000
comiss xmm0, dword [0x180139e3c]
cmovae ebx, eax
mov dword [rdi + 0x40], ebx
sub ebx, dword [rdi + 0x14]
mov dword [rbp - 0x34], r15d
mov qword [rbp - 0x30], r15
xor r8d, r8d
test ebx, ebx
jle 0x1800272fb
mov r14d, ebx
lea eax, [r8 + 8]
cmp ebx, eax
cmovl r14d, eax
test r14d, r14d
jle 0x1800272fb
mov rax, qword [0x180145c50]
test rax, rax
je 0x1800272e0
add dword [rax + 0xf4], esi
movsxd rcx, r14d
shl rcx, 4
call qword [0x1800af428]
mov r15, rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], r14d
xor r8d, r8d
mov dword [rbp - 0x38], ebx
mov r10d, 0x8000
sub r10d, dword [rdi + 0x14]
mov ecx, dword [rdi + 0x40]
sub ecx, dword [rdi + 0x14]
lea r11d, [rbx - 1]
mov r14d, r8d
movsxd r9, r11d
test r11d, r11d
jle 0x180027341
mov edx, esi
lea r8, [r15 + 8]
mov r14d, r11d
movsxd rax, edx
shl rax, 4
add rax, r15
mov qword [r8], rax
add edx, esi
lea r8, [r8 + 0x10]
sub r9, rsi
jne 0x180027326
xor r8d, r8d
movsxd rax, r14d
add rax, rax
mov qword [r15 + rax*8 + 8], r8
mov qword [rbp + 0x5c], 1
mov qword [rbp + 0x70], r15
lea rax, [rbp + 0x78]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x50], ecx
mov dword [rbp + 0x54], r10d
mov dword [rbp + 0x64], ebx
lea eax, [rbx - 1]
add eax, ecx
cdq
idiv ebx
mov dword [rbp + 0x58], eax
and qword [rbp + 0x78], 0
lea rax, [rbp + 0x88]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], ecx
mov dword [rbp + 0x8c], 0x40000000
mov qword [rbp + 0x90], r8
mov r14, r8
mov ebx, dword [rdi + 0x68]
test ebx, ebx
jle 0x1800273de
mov eax, ebx
mov ecx, 8
cmp ebx, ecx
cmovl eax, ecx
test eax, eax
jle 0x1800273de
mov rcx, qword [0x180145c50]
test rcx, rcx
je 0x1800273cb
add dword [rcx + 0xf4], esi
cdqe
lea rcx, [rax + rax*2]
shl rcx, 3
call qword [0x1800af428]
mov r14, rax
lea ecx, [rbx + rbx*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call fcn.1800adcc4
xor eax, eax
mov r9d, eax
cmp dword [rdi + 0x68], eax
jle 0x18002742a
mov edx, eax
lea r8, [r14 + 8]
mov rax, qword [rdi + 0x70]
movzx ecx, word [rax + rdx]
mov dword [r8 - 4], ecx
mov rax, qword [rdi + 0x70]
movzx ecx, word [rax + rdx + 2]
mov dword [r8], ecx
add r9d, esi
lea rdx, [rdx + 0x20]
lea r8, [r8 + 0x18]
cmp r9d, dword [rdi + 0x68]
jl 0x180027401
mov r8d, ebx
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.18001e814
xor ecx, ecx
test ebx, ebx
jle 0x180027487
mov r8d, ecx
lea rdx, [r14 + 0x10]
mov r9, rbx
cmp dword [rdx + 4], ecx
je 0x18002747a
movzx ecx, word [rdx - 4]
mov rax, qword [rdi + 0x70]
mov word [r8 + rax + 4], cx
movzx ecx, word [rdx]
mov rax, qword [rdi + 0x70]
mov word [r8 + rax + 6], cx
mov eax, dword [rdx - 8]
add eax, dword [rdx]
cmp dword [rdi + 0x44], eax
cmovge eax, dword [rdi + 0x44]
mov dword [rdi + 0x44], eax
xor ecx, ecx
add r8, 0x20
add rdx, 0x18
sub r9, rsi
jne 0x180027449
test r14, r14
je 0x1800274a8
mov rax, qword [0x180145c50]
test rax, rax
je 0x18002749e
dec dword [rax + 0xf4]
mov rcx, r14
call qword [0x1800af430]
nop
xor r14d, r14d
test r12d, r12d
jle 0x18002750c
lea rbx, [r13 + 0x48]
mov r14d, r12d
xor eax, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x180027503
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp + 0x50]
call fcn.180026668
xor eax, eax
mov r8d, eax
cmp dword [rbx], eax
jle 0x180027503
mov ecx, eax
mov rdx, qword [rbx - 0x18]
cmp dword [rcx + rdx + 0x14], eax
je 0x1800274f7
mov eax, dword [rcx + rdx + 0x10]
add eax, dword [rcx + rdx + 8]
cmp dword [rdi + 0x44], eax
cmovge eax, dword [rdi + 0x44]
mov dword [rdi + 0x44], eax
xor eax, eax
add r8d, esi
add rcx, 0x18
cmp r8d, dword [rbx]
jl 0x1800274d9
add rbx, 0x70
sub r14, rsi
jne 0x1800274b9
mov eax, dword [rdi + 0x44]
test byte [rdi], sil
jne 0x180027539
lea ecx, [rax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
inc eax
mov dword [rdi + 0x44], eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm6
divss xmm1, xmm0
movd xmm0, dword [rdi + 0x40]
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
movss dword [rdi + 0x48], xmm6
movss dword [rdi + 0x4c], xmm1
movsxd rbx, eax
movsxd rax, dword [rdi + 0x40]
imul rbx, rax
mov rax, qword [0x180145c50]
cmp byte [rsp + 0x68], r14b
je 0x180027599
shl rbx, 2
test rax, rax
je 0x18002758a
add dword [rax + 0xf4], esi
mov rcx, rbx
call qword [0x1800af428]
mov qword [rdi + 0x38], rax
jmp 0x1800275b1
test rax, rax
je 0x1800275a4
add dword [rax + 0xf4], esi
mov rcx, rbx
call qword [0x1800af428]
mov qword [rdi + 0x30], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1800adcc4
mov dl, r14b
mov byte [rsp + 0x60], dl
test r12d, r12d
jle 0x180027916
mov rcx, r14
mov qword [rbp - 0x28], rcx
lea rbx, [r13 + 8]
mov eax, r12d
mov qword [rbp - 0x58], rax
cmp dword [rbx + 0x40], r14d
je 0x1800278ee
mov r12, qword [rdi + 0x80]
add r12, rcx
mov r13, qword [r12 + 0x80]
movss xmm6, dword [rbx - 4]
movss xmm7, dword [rbx]
xor eax, eax
cmp byte [r12 + 0x48], al
jne 0x18002763a
mov rcx, r13
call fcn.180024294
mov eax, dword [r12 + 0x14]
mov dword [r13 + 0x14], eax
mov qword [r13 + 0x48], r12
xor eax, eax
mov word [r13 + 0x50], ax
mov qword [r13 + 0x40], rdi
movss dword [r13 + 0x68], xmm6
movss dword [r13 + 0x6c], xmm7
add word [r13 + 0x50], si
movss xmm11, dword [r12 + 0x2c]
movss xmm0, dword [r13 + 0x68]
addss xmm0, dword [0x180139c74]
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
addss xmm10, dword [r12 + 0x30]
mov r9d, dword [rdi + 0x14]
mov dword [rsp + 0x64], r9d
xor r14d, r14d
mov dword [rsp + 0x6c], r14d
cmp dword [rbx + 0x40], r14d
jle 0x1800278e2
mov edx, r14d
mov qword [rsp + 0x78], rdx
xor eax, eax
mov r15, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x28]
cmp dword [rdx + rcx + 4], eax
jne 0x1800276a5
cmp dword [rdx + rcx + 8], eax
je 0x1800278bf
mov r8d, dword [rdx + rcx + 0xc]
add r8d, r9d
mov dword [rbp - 0x50], r8d
mov edx, dword [rdx + rcx + 0x10]
add edx, r9d
mov dword [rbp - 0x4c], edx
movd xmm3, dword [r14 + r15 + 8]
cvtdq2ps xmm3, xmm3
addss xmm3, xmm11
movd xmm9, dword [r14 + r15 + 0xc]
cvtdq2ps xmm9, xmm9
addss xmm9, xmm10
mov eax, dword [r14 + r15]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
addss xmm8, xmm3
mov ecx, dword [r14 + r15 + 4]
movd xmm7, ecx
cvtdq2ps xmm7, xmm7
addss xmm7, xmm9
movd xmm0, dword [rdi + 0x40]
cvtdq2ps xmm0, xmm0
movd xmm6, r8d
cvtdq2ps xmm6, xmm6
divss xmm6, xmm0
movd xmm2, dword [rdi + 0x44]
cvtdq2ps xmm2, xmm2
movd xmm5, edx
cvtdq2ps xmm5, xmm5
divss xmm5, xmm2
add eax, r8d
movd xmm4, eax
cvtdq2ps xmm4, xmm4
divss xmm4, xmm0
lea eax, [rcx + rdx]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm2
movss xmm0, dword [r14 + r15 + 0x10]
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x50], xmm1
movss dword [rsp + 0x48], xmm4
movss dword [rsp + 0x40], xmm5
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x30], xmm7
movss dword [rsp + 0x28], xmm8
movss dword [rsp + 0x20], xmm9
movzx r8d, word [r14 + r15 + 0x18]
mov rdx, r12
mov rcx, r13
call fcn.180024800
movsxd rax, dword [r13 + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [r13 + 0x30]
cmp byte [r14 + r15 + 0x14], 0
je 0x1800277a7
mov byte [rsp + 0x60], sil
or dword [rax + rcx*8 - 0x28], esi
movsxd rcx, dword [r14 + r15]
mov r10, rcx
movsxd r11, dword [rdi + 0x40]
mov qword [rbp - 0x48], r11
mov r8, qword [r14 + r15 + 0x20]
mov r9, qword [rdi + 0x30]
movsxd rdx, dword [rbp - 0x4c]
imul rdx, r11
movsxd rax, dword [rbp - 0x50]
add rdx, rax
xor eax, eax
test r9, r9
je 0x180027843
lea r11, [r9 + rdx]
mov dword [rsp + 0x70], eax
cmp dword [r14 + r15 + 4], eax
jle 0x1800278b5
lea rdx, [rcx*4]
mov qword [rbp - 0x80], rdx
mov rdx, qword [rbp - 0x48]
mov r9, qword [rbp - 0x80]
xor r10d, r10d
test ecx, ecx
jle 0x18002782e
mov rdx, r11
lea r9, [r8 + 3]
mov al, byte [r9]
mov byte [rdx], al
add r10d, esi
lea r9, [r9 + 4]
add rdx, rsi
mov ecx, dword [r14 + r15]
cmp r10d, ecx
jl 0x18002780a
mov eax, dword [rsp + 0x70]
mov rdx, qword [rbp - 0x48]
mov r9, qword [rbp - 0x80]
add eax, esi
mov dword [rsp + 0x70], eax
add r11, rdx
add r8, r9
cmp eax, dword [r14 + r15 + 4]
jl 0x1800277fc
jmp 0x1800278b3
mov rax, qword [rdi + 0x38]
lea r9, [rax + rdx*4]
xor edx, edx
mov eax, edx
mov dword [rsp + 0x70], edx
cmp dword [r14 + r15 + 4], edx
jle 0x1800278b5
lea rdx, [r11*4]
mov qword [rbp - 0x48], rdx
shl r10, 2
mov qword [rbp - 0x80], r10
xor r11d, r11d
test ecx, ecx
jle 0x1800278a0
mov rdx, r9
mov r10, r8
sub r10, r9
mov eax, dword [r10 + rdx]
mov dword [rdx], eax
add r11d, esi
lea rdx, [rdx + 4]
mov ecx, dword [r14 + r15]
cmp r11d, ecx
jl 0x18002787e
mov eax, dword [rsp + 0x70]
mov rdx, qword [rbp - 0x48]
mov r10, qword [rbp - 0x80]
add eax, esi
mov dword [rsp + 0x70], eax
add r9, rdx
add r8, r10
cmp eax, dword [r14 + r15 + 4]
jl 0x18002786e
xor eax, eax
mov r9d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x6c]
add ecx, esi
mov dword [rsp + 0x6c], ecx
add r14, 0x28
add rdx, 0x18
mov qword [rsp + 0x78], rdx
cmp ecx, dword [rbx + 0x40]
jl 0x18002768d
xor r14d, r14d
mov qword [rbx + 0x28], r14
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x58]
add rbx, 0x70
add rcx, 0x88
mov qword [rbp - 0x28], rcx
sub rax, rsi
mov qword [rbp - 0x58], rax
jne 0x1800275e0
mov r15, qword [rbp - 0x30]
mov dl, byte [rsp + 0x60]
mov r12d, dword [rbp - 0x70]
mov byte [rdi + 0x29], dl
mov eax, dword [rsp + 0x74]
test eax, eax
jle 0x180027951
mov rbx, qword [rbp - 0x40]
mov r14d, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x180027942
mov rax, qword [0x180145c50]
test rax, rax
je 0x180027942
dec dword [rax + 0xf4]
call qword [0x1800af430]
add rbx, 8
sub r14, rsi
jne 0x180027928
mov r13, qword [rbp - 0x40]
test r12d, r12d
jle 0x180027972
mov rbx, qword [rbp - 0x78]
mov r14d, r12d
mov rcx, rbx
call fcn.180027c6c
add rbx, 0x70
sub r14, rsi
jne 0x180027961
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1800279a6
and qword [rbp - 0x10], 0
mov rax, qword [0x180145c50]
test rax, rax
je 0x180027992
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [0x1800af430]
mov rbx, r14
mov qword [rbp - 0x78], rbx
mov qword [rbp - 8], rbx
mov rcx, rdi
call fcn.180023f90
nop
test r15, r15
je 0x1800279d0
mov rax, qword [0x180145c50]
test rax, rax
je 0x1800279c6
dec dword [rax + 0xf4]
mov rcx, r15
call qword [0x1800af430]
nop
test r13, r13
je 0x1800279f1
mov rax, qword [0x180145c50]
test rax, rax
je 0x1800279e7
dec dword [rax + 0xf4]
mov rcx, r13
call qword [0x1800af430]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180027a13
mov rax, qword [0x180145c50]
test rax, rax
je 0x180027a0c
dec dword [rax + 0xf4]
call qword [0x1800af430]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x180027a35
mov rax, qword [0x180145c50]
test rax, rax
je 0x180027a2e
dec dword [rax + 0xf4]
call qword [0x1800af430]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180027a57
mov rax, qword [0x180145c50]
test rax, rax
je 0x180027a50
dec dword [rax + 0xf4]
call qword [0x1800af430]
nop
mov al, sil
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1800ac940
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret