Function at 0x14006a670
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 - 0x248]
sub rsp, 0x310
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 [0x14018a040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov dword [rsp + 0x70], r8d
mov rdi, rdx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], rcx
mov rdx, qword [rdx + 0x80]
movsxd rax, dword [rdi + 0x78]
lea r8, [rax + rax*8]
shl r8, 4
add r8, rdx
jmp 0x14006a703
cvttss2si eax, dword [rdx + 0x14]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdx + 0x14], xmm0
add rdx, 0x90
cmp rdx, r8
jne 0x14006a6eb
xor r12d, r12d
cmp dword [rdi + 0x494], r12d
jge 0x14006a73a
lea edx, [r12 + 2]
mov rcx, rdi
test byte [rdi], dl
jne 0x14006a72c
mov edx, 0xf5
lea r8d, [r12 + 0x1b]
jmp 0x14006a72f
mov r8d, edx
call fcn.1400549bc
mov dword [rdi + 0x494], eax
cmp dword [rdi + 0x498], r12d
jge 0x14006a75f
test byte [rdi], 4
jne 0x14006a75f
mov edx, 0x41
lea r8d, [rdx - 1]
mov rcx, rdi
call fcn.1400549bc
mov dword [rdi + 0x498], eax
mov qword [rdi + 8], r12
mov qword [rdi + 0x40], r12
mov qword [rdi + 0x48], r12
mov qword [rdi + 0x50], r12
mov rcx, rdi
call fcn.140053ff4
mov byte [rsp + 0x61], r12b
mov qword [rbp - 8], r12
mov r13, r12
mov qword [rbp - 0x38], r12
mov qword [rbp], r12
mov qword [rbp - 0x28], r12
mov rsi, r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x20], r12
mov r15d, dword [rdi + 0x78]
mov dword [rbp - 0x80], r15d
mov eax, 8
test r15d, r15d
jle 0x14006a7d8
mov ebx, r15d
cmp r15d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x14006a7d8
movsxd rax, ebx
imul rcx, rax, 0x78
call fcn.14003c900
mov r13, rax
mov qword [rbp - 0x38], rax
mov qword [rbp], rax
mov dword [rbp - 4], ebx
mov eax, 8
mov dword [rbp - 8], r15d
mov r14d, dword [rdi + 0x58]
mov dword [rsp + 0x68], r14d
test r14d, r14d
jle 0x14006a811
mov ebx, r14d
cmp r14d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x14006a811
movsxd rcx, ebx
shl rcx, 5
call fcn.14003c900
mov rsi, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], ebx
mov dword [rbp - 0x28], r14d
imul ecx, r15d, 0x78
movsxd r8, ecx
xor edx, edx
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
mov ecx, r14d
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
mov dword [rsp + 0x6c], r10d
lea esi, [r10 + 1]
cmp dword [rdi + 0x78], r10d
jle 0x14006a97c
mov ecx, r10d
mov qword [rsp + 0x78], rcx
lea rbx, [r13 + 0x4c]
or r11d, 0xffffffff
mov r12, qword [rdi + 0x80]
add r12, rcx
mov dword [rbx - 4], r11d
mov r8d, r10d
cmp dword [rdi + 0x58], r10d
jle 0x14006a974
mov edx, r11d
mov r9, r10
mov r15d, 8
mov eax, edx
cmp edx, r11d
jne 0x14006a8b7
mov edx, r11d
mov rax, qword [rdi + 0x60]
mov rcx, qword [r9 + rax]
cmp qword [r12 + 0x88], rcx
jne 0x14006a8a9
mov dword [rbx - 4], r8d
mov edx, r8d
add r8d, esi
add r9, r15
mov eax, edx
cmp r8d, dword [rdi + 0x58]
jl 0x14006a886
cmp eax, r11d
mov r15d, dword [rbp - 0x80]
je 0x14006a974
lea rcx, [rbx - 0x4c]
mov r9d, dword [rsp + 0x70]
mov r8, r12
mov rdx, qword [rbp - 0x68]
call fcn.140069f08
xor r10d, r10d
test al, al
je 0x14006a974
mov eax, dword [r12 + 0x4c]
shr eax, 8
and al, sil
or byte [rsp + 0x61], al
movsxd rdx, dword [rbx - 4]
shl rdx, 5
mov r8, qword [rbp - 0x58]
add rdx, r8
lea rcx, [0x140176890]
cmp qword [r12 + 0x38], r10
cmovne rcx, qword [r12 + 0x38]
mov qword [rbx - 0xc], rcx
jmp 0x14006a930
cmp word [rcx + 2], r10w
je 0x14006a936
movzx eax, word [rcx + 2]
cmp dword [rbx], eax
cmovge eax, dword [rbx]
mov dword [rbx], eax
add rcx, 4
cmp word [rcx], r10w
jne 0x14006a91a
add dword [rdx], esi
mov eax, dword [rbx]
cmp dword [rdx + 4], eax
cmovge eax, dword [rdx + 4]
mov dword [rdx + 4], eax
mov edx, dword [rsp + 0x6c]
add edx, esi
mov dword [rsp + 0x6c], edx
add rbx, 0x78
mov rcx, qword [rsp + 0x78]
add rcx, 0x90
mov qword [rsp + 0x78], rcx
cmp edx, dword [rdi + 0x78]
mov r11d, 0xffffffff
jl 0x14006a85f
jmp 0x14006a980
mov sil, r10b
jmp 0x14006b7a8
mov r8, qword [rbp - 0x58]
mov r12d, r10d
test r15d, r15d
jle 0x14006ac82
lea r14, [r13 + 0x50]
mov edi, r15d
mov qword [rsp + 0x78], rdi
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.14004f218
movsxd r8, dword [r14 + 8]
shl r8, 2
xor edx, edx
mov rcx, qword [r14 + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rbx, [r15 + 0x10]
xor r10d, r10d
cmp dword [rbx], r10d
jne 0x14006a9fc
mov edx, dword [r15 + 4]
add edx, 0x20
sar edx, 5
mov rcx, rbx
call fcn.14004f218
movsxd r8, dword [rbx]
shl r8, 2
xor edx, edx
mov rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
mov rbx, qword [r14 - 0x10]
cmp word [rbx], r10w
je 0x14006aa8c
cmp word [rbx + 2], r10w
je 0x14006aa87
movzx edi, word [rbx]
movzx eax, word [rbx + 2]
cmp edi, eax
ja 0x14006aa7d
movsxd rdx, edi
sar rdx, 5
mov qword [rbp - 0x68], rdx
mov ecx, edi
and ecx, 0x1f
mov r8d, esi
shl r8d, cl
mov dword [rsp + 0x70], r8d
mov rax, qword [r15 + 0x18]
test dword [rax + rdx*4], r8d
jne 0x14006aa73
mov edx, edi
mov rcx, qword [r14 - 0x38]
call fcn.14006d1a0
xor r10d, r10d
test eax, eax
je 0x14006aa73
add dword [r14], esi
add dword [r15 + 8], esi
mov rax, qword [r14 + 0x10]
mov rcx, qword [rbp - 0x68]
mov edx, dword [rsp + 0x70]
or dword [rax + rcx*4], edx
mov rax, qword [r15 + 0x18]
or dword [rax + rcx*4], edx
add r12d, esi
add edi, esi
movzx eax, word [rbx + 2]
cmp edi, eax
jle 0x14006aa1c
add rbx, 4
cmp word [rbx], r10w
jne 0x14006aa0a
mov rdi, qword [rsp + 0x78]
add r14, 0x78
sub rdi, rsi
mov qword [rsp + 0x78], rdi
mov r8, qword [rbp - 0x58]
jne 0x14006a998
lea rbx, [r13 + 0x6c]
mov r15d, dword [rbp - 0x80]
mov r13d, r15d
mov qword [rsp + 0x78], r15
mov rdi, qword [rbp - 0x70]
mov r15d, 8
movsxd r14, dword [rbx - 0x1c]
cmp r14d, dword [rbx]
jle 0x14006ab0d
lea rcx, [r14 + r14*4]
shl rcx, 3
call fcn.14003c900
mov qword [rbp - 0x68], rax
mov rdx, qword [rbx + 4]
xor r10d, r10d
test rdx, rdx
je 0x14006ab06
movsxd rcx, dword [rbx - 4]
lea r8, [rcx + rcx*4]
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 4]
call fcn.14003c948
mov rax, qword [rbp - 0x68]
xor r10d, r10d
mov qword [rbx + 4], rax
mov dword [rbx], r14d
mov rdx, qword [rbx - 0xc]
mov qword [rbp - 0x78], rdx
movsxd rax, dword [rbx - 0x14]
lea rax, [rdx + rax*4]
cmp rdx, rax
jae 0x14006ac49
mov rdi, rdx
mov r13, rax
mov eax, dword [rdi]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x14006ac33
mov r8d, r10d
mov dword [rsp + 0x6c], r10d
bt eax, r8d
jae 0x14006ac21
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp + 0x38], xmm6
mov qword [rbp + 0x48], rax
lea rcx, [rdi*8]
lea rax, [rdx*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, r8d
movzx eax, cx
mov dword [rbp + 0x40], eax
mov r14d, dword [rbx - 4]
cmp r14d, dword [rbx]
jne 0x14006abf2
inc r14d
cmp dword [rbx], r10d
je 0x14006ab93
mov eax, dword [rbx]
cdq
sub eax, edx
sar eax, 1
add eax, dword [rbx]
jmp 0x14006ab96
mov eax, r15d
cmp eax, r14d
cmovg r14d, eax
cmp r14d, dword [rbx]
jle 0x14006abf2
movsxd rax, r14d
lea rcx, [rax + rax*4]
shl rcx, 3
call fcn.14003c900
mov qword [rbp - 0x68], rax
mov rdx, qword [rbx + 4]
xor r10d, r10d
test rdx, rdx
je 0x14006abe6
movsxd rcx, dword [rbx - 4]
lea r8, [rcx + rcx*4]
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 4]
call fcn.14003c948
mov rax, qword [rbp - 0x68]
xor r10d, r10d
mov qword [rbx + 4], rax
mov dword [rbx], r14d
mov r8d, dword [rsp + 0x6c]
movsxd rax, dword [rbx - 4]
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 4]
movups xmmword [rax + rcx*8], xmm6
movups xmm0, xmmword [rbp + 0x38]
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd xmm1, qword [rbp + 0x48]
movsd qword [rax + rcx*8 + 0x20], xmm1
add dword [rbx - 4], esi
mov rdx, qword [rbp - 0x78]
mov eax, dword [rsp + 0x70]
add r8d, esi
mov dword [rsp + 0x6c], r8d
cmp r8d, 0x20
jb 0x14006ab42
add rdi, 4
cmp rdi, r13
jb 0x14006ab2c
mov rdi, qword [rbp - 0x70]
mov r13, qword [rsp + 0x78]
mov rcx, qword [rbx - 0xc]
test rcx, rcx
je 0x14006ac63
and qword [rbx - 0x14], 0
call fcn.14003c948
xor r10d, r10d
mov qword [rbx - 0xc], r10
add rbx, 0x78
sub r13, rsi
mov qword [rsp + 0x78], r13
jne 0x14006aabc
mov r13, qword [rbp - 0x38]
mov r15d, dword [rbp - 0x80]
mov r14d, dword [rsp + 0x68]
test r14d, r14d
jle 0x14006acb0
mov rbx, qword [rbp - 0x58]
add rbx, 0x18
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006aca7
and qword [rbx - 8], 0
call fcn.14003c948
xor r10d, r10d
mov qword [rbx], r10
add rbx, 0x20
sub r14, rsi
jne 0x14006ac8f
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x14006acd4
and qword [rbp - 0x28], 0
mov rcx, rax
call fcn.14003c948
xor r10d, r10d
mov eax, r10d
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x20], rax
and qword [rbp + 0x18], 0
mov r14, r10
mov qword [rsp + 0x78], r10
mov qword [rbp + 0x20], r10
test r12d, r12d
jle 0x14006ad1b
mov ebx, r12d
mov eax, 8
cmp r12d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x14006ad1b
movsxd rax, ebx
lea rcx, [rax + rax*2]
shl rcx, 3
call fcn.14003c900
mov r14, rax
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x1c], ebx
mov dword [rbp + 0x18], r12d
lea ecx, [r12 + r12*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov dword [rsp + 0x68], r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov ecx, 0x40000
call fcn.14003c900
mov rbx, rax
lea ecx, [r12 + 0x40]
call fcn.14003c900
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 8
mov qword [rax], rbx
mov eax, esi
mov dword [rsp + 0x6c], eax
mov dword [rbp - 0x18], eax
mov ecx, r12d
mov dword [rsp + 0x64], ecx
mov r9d, r12d
movss xmm6, dword [0x140176f74]
test r15d, r15d
jle 0x14006b075
mov r8d, r12d
mov qword [rbp - 0x50], r12
lea rbx, [r13 + 0x68]
mov r10d, r15d
mov qword [rbp - 0x78], r10
mov r11d, 0xff
mov rdx, qword [rdi + 0x80]
cmp dword [rbx - 0x18], r12d
je 0x14006b051
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 - 0x44], r9d
movss xmm1, dword [r8 + rdx + 0x50]
ucomiss xmm1, xmm6
jp 0x14006ade5
jne 0x14006ade5
mov byte [rsp + 0x60], r12b
jmp 0x14006ae25
mov byte [rsp + 0x60], sil
mov edx, r12d
lea r8, [rbp + 0xa0]
mov eax, edx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm1
cvttss2si rax, xmm0
movzx ecx, al
cmp eax, r11d
cmova ecx, r11d
mov byte [r8], cl
add edx, esi
add r8, rsi
cmp edx, 0x100
jb 0x14006adf4
mov r8, qword [rbp - 0x50]
mov eax, dword [rdi + 0x14]
mov dword [rbp - 0x48], eax
mov r13d, r12d
cmp dword [rbx], r12d
jle 0x14006b04d
mov r15, r12
mov r14, r12
mov edi, dword [rsp + 0x68]
mov r12, qword [rbx + 8]
mov edx, dword [r14 + r12 + 0x18]
mov rcx, qword [rbx - 0x50]
call fcn.14006d1a0
test eax, eax
je 0x14006b011
mov r8d, dword [rbx - 0x44]
mov edx, eax
mov rcx, qword [rbx - 0x50]
call fcn.14006e1a0
test eax, eax
jne 0x14006b011
mov rax, qword [rbx - 0x50]
mov rax, qword [rax + 0x78]
mov qword [rsp + 0x70], rax
test byte [rbx - 0x48], 0x20
je 0x14006ae92
mov rcx, rax
call fcn.1400768e0
mov rax, qword [rsp + 0x70]
test byte [rbx - 0x48], 0x40
je 0x14006aea0
mov rcx, rax
call fcn.1400769e0
mov rax, qword [rsp + 0x70]
add rax, 0x30
je 0x14006b011
mov rax, qword [rbx - 0x50]
mov rax, qword [rax + 0x78]
mov qword [rbp - 0x68], rax
mov edx, dword [rbx - 0x40]
mov rcx, rax
call fcn.140070be0
test eax, eax
jne 0x14006b011
mov rax, qword [rbx - 0x50]
mov r10, qword [rax + 0x78]
add r10, 0x68
mov qword [rbp - 0x40], r10
mov r8d, dword [r10 + 4]
mov dword [r14 + r12], r8d
mov r9d, dword [r10]
mov dword [r14 + r12 + 4], r9d
mov rax, qword [rbx - 0x50]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [r14 + r12 + 8], eax
mov rax, qword [rbx - 0x50]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [r14 + r12 + 0xc], eax
mov rax, qword [rbp - 0x68]
mov eax, dword [rax + 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 [r14 + r12 + 0x10], xmm0
cmp byte [r10 + 0x1a], 7
sete al
mov byte [r14 + r12 + 0x14], al
imul r9d, r8d
shl r9d, 2
mov dword [rsp + 0x70], r9d
lea eax, [r9 + rdi]
mov ecx, 0x40000
cmp eax, ecx
jle 0x14006af93
xor edi, edi
call fcn.14003c900
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x18]
call fcn.14004ec9c
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x6c], eax
mov r9d, dword [rsp + 0x70]
mov r10, qword [rbp - 0x40]
jmp 0x14006af97
mov eax, dword [rsp + 0x6c]
dec eax
cdqe
movsxd rcx, edi
mov rdx, qword [rbp - 0x30]
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [r14 + r12 + 0x20], r8
add edi, r9d
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 [r14 + r12]
mov rdx, r10
call fcn.14006a14c
mov ecx, dword [r14 + r12]
add ecx, dword [rbp - 0x48]
mov rax, qword [rbx - 0x30]
mov dword [r15 + rax + 4], ecx
mov ecx, dword [r14 + r12 + 4]
add ecx, dword [rbp - 0x48]
mov rax, qword [rbx - 0x30]
mov dword [r15 + rax + 8], ecx
mov rcx, qword [rbx - 0x30]
mov eax, dword [r15 + rcx + 8]
imul eax, dword [r15 + rcx + 4]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov dword [rsp + 0x64], ecx
jmp 0x14006b015
mov ecx, dword [rsp + 0x64]
add r13d, esi
add r14, 0x28
add r15, 0x18
cmp r13d, dword [rbx]
jl 0x14006ae41
mov dword [rsp + 0x68], edi
mov rdi, qword [rbp - 0x70]
mov r8, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x44]
mov r10, qword [rbp - 0x78]
mov r14, qword [rsp + 0x78]
xor r12d, r12d
mov r11d, 0xff
jmp 0x14006b051
mov ecx, dword [rsp + 0x64]
add rbx, 0x78
add r8, 0x90
mov qword [rbp - 0x50], r8
sub r10, rsi
mov qword [rbp - 0x78], r10
jne 0x14006ada8
mov r13, qword [rbp - 0x38]
mov r15d, dword [rbp - 0x80]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvttss2si eax, xmm0
add eax, esi
mov dword [rdi + 0x44], r12d
mov ebx, dword [rdi + 0x10]
test ebx, ebx
jg 0x14006b0cb
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov ebx, 0x200
mov eax, 0x400
comiss xmm0, dword [0x1401770b4]
cmovae ebx, eax
mov eax, 0x800
comiss xmm0, dword [0x1401770c4]
cmovae ebx, eax
mov eax, 0x1000
comiss xmm0, dword [0x1401770c8]
cmovae ebx, eax
mov dword [rdi + 0x40], ebx
sub ebx, dword [rdi + 0x14]
and qword [rbp + 8], 0
mov qword [rbp + 0x10], r12
xor r8d, r8d
test ebx, ebx
jle 0x14006b10d
mov r14d, ebx
lea eax, [r8 + 8]
cmp ebx, eax
cmovl r14d, eax
test r14d, r14d
jle 0x14006b10d
movsxd rcx, r14d
shl rcx, 4
call fcn.14003c900
mov r12, rax
mov qword [rbp + 0x10], rax
mov dword [rbp + 0xc], r14d
xor r8d, r8d
mov dword [rbp + 8], ebx
mov r10d, 0x8000
sub r10d, dword [rdi + 0x14]
mov ecx, dword [rdi + 0x40]
sub ecx, dword [rdi + 0x14]
lea eax, [rbx - 1]
mov r11d, r8d
movsxd r9, eax
test eax, eax
jle 0x14006b152
mov edx, esi
lea r8, [r12 + 8]
mov r11d, eax
movsxd rax, edx
shl rax, 4
add rax, r12
mov qword [r8], rax
add edx, esi
lea r8, [r8 + 0x10]
sub r9, rsi
jne 0x14006b137
xor r8d, r8d
movsxd rax, r11d
add rax, rax
mov qword [r12 + rax*8 + 8], r8
mov qword [rbp + 0x5c], 1
mov qword [rbp + 0x70], r12
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
and qword [rbp - 0x68], 0
mov r14, r8
mov qword [rbp - 0x60], r8
mov ebx, dword [rdi + 0x68]
test ebx, ebx
jle 0x14006b1e5
mov eax, ebx
mov ecx, 8
cmp ebx, ecx
cmovl eax, ecx
test eax, eax
jle 0x14006b1e5
cdqe
lea rcx, [rax + rax*2]
shl rcx, 3
call fcn.14003c900
mov r14, rax
lea ecx, [rbx + rbx*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
cmp dword [rdi + 0x68], r9d
jle 0x14006b230
xor edx, edx
lea r8, [r14 + 8]
mov rax, qword [rdi + 0x70]
movzx ecx, word [rdx + rax]
mov dword [r8 - 4], ecx
mov rax, qword [rdi + 0x70]
movzx ecx, word [rdx + rax + 2]
mov dword [r8], ecx
add r9d, esi
lea rdx, [rdx + 0x20]
lea r8, [r8 + 0x18]
cmp r9d, dword [rdi + 0x68]
jl 0x14006b207
mov r8d, ebx
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.14004fe44
test ebx, ebx
jle 0x14006b28a
xor r8d, r8d
lea rdx, [r14 + 0x10]
mov r9, rbx
cmp dword [rdx + 4], 0
je 0x14006b27d
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
add r8, 0x20
add rdx, 0x18
sub r9, rsi
jne 0x14006b24d
test r14, r14
je 0x14006b298
mov rcx, r14
call fcn.14003c948
nop
test r15d, r15d
jle 0x14006b2f4
lea rbx, [r13 + 0x50]
mov r14d, r15d
mov r8d, dword [rbx]
test r8d, r8d
je 0x14006b2eb
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp + 0x50]
call fcn.14006a4ac
xor edx, edx
cmp dword [rbx], edx
jle 0x14006b2eb
xor ecx, ecx
mov r8, qword [rbx - 0x18]
cmp dword [r8 + rcx + 0x14], 0
je 0x14006b2e1
mov eax, dword [r8 + rcx + 0x10]
add eax, dword [r8 + rcx + 8]
cmp dword [rdi + 0x44], eax
cmovge eax, dword [rdi + 0x44]
mov dword [rdi + 0x44], eax
add edx, esi
add rcx, 0x18
cmp edx, dword [rbx]
jl 0x14006b2c1
add rbx, 0x78
sub r14, rsi
jne 0x14006b2a4
mov eax, dword [rdi + 0x44]
test byte [rdi], sil
jne 0x14006b321
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
cmp byte [rsp + 0x61], 0
je 0x14006b36e
shl rbx, 2
mov rcx, rbx
call fcn.14003c900
mov qword [rdi + 0x38], rax
jmp 0x14006b37a
mov rcx, rbx
call fcn.14003c900
mov qword [rdi + 0x30], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor al, al
mov byte [rsp + 0x60], al
test r15d, r15d
jle 0x14006b6e3
xor ecx, ecx
mov qword [rbp - 0x40], rcx
lea rbx, [r13 + 4]
mov r13d, r15d
mov qword [rbp - 0x68], r13
cmp dword [rbx + 0x4c], 0
je 0x14006b6b7
mov r12, qword [rdi + 0x80]
add r12, rcx
mov r15, qword [r12 + 0x88]
movss xmm6, dword [rbx]
movss xmm7, dword [rbx + 4]
cmp byte [r12 + 0x48], 0
jne 0x14006b3f5
mov rcx, r15
call fcn.140054f50
mov eax, dword [r12 + 0x14]
mov dword [r15 + 0x14], eax
mov qword [r15 + 0x40], rdi
movss dword [r15 + 0x68], xmm6
movss dword [r15 + 0x6c], xmm7
movss xmm11, dword [r12 + 0x2c]
movss xmm0, dword [r15 + 0x68]
addss xmm0, dword [0x140176f2c]
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
addss xmm10, dword [r12 + 0x30]
mov r9d, dword [rdi + 0x14]
mov dword [rsp + 0x64], r9d
and dword [rsp + 0x70], 0
cmp dword [rbx + 0x4c], 0
jle 0x14006b6ae
xor edx, edx
mov qword [rbp - 0x70], rdx
xor r14d, r14d
mov r13, r12
mov r12, qword [rbx + 0x6c]
mov rcx, qword [rbx + 0x34]
cmp dword [rdx + rcx + 4], 0
jne 0x14006b45c
cmp dword [rdx + rcx + 8], 0
je 0x14006b68b
mov r8d, dword [rdx + rcx + 0xc]
add r8d, r9d
mov dword [rbp - 0x48], r8d
mov edx, dword [rdx + rcx + 0x10]
add edx, r9d
mov dword [rbp - 0x44], edx
movss xmm8, dword [rbx + 0x2c]
movd xmm3, dword [r14 + r12 + 8]
cvtdq2ps xmm3, xmm3
mulss xmm3, xmm8
addss xmm3, xmm11
movd xmm9, dword [r14 + r12 + 0xc]
cvtdq2ps xmm9, xmm9
mulss xmm9, xmm8
addss xmm9, xmm10
mov eax, dword [r14 + r12]
movd xmm7, eax
cvtdq2ps xmm7, xmm7
mulss xmm7, xmm8
addss xmm7, xmm3
mov ecx, dword [r14 + r12 + 4]
movd xmm6, ecx
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm8
addss xmm6, xmm9
movd xmm0, dword [rdi + 0x40]
cvtdq2ps xmm0, xmm0
movd xmm5, r8d
cvtdq2ps xmm5, xmm5
divss xmm5, xmm0
movd xmm1, dword [rdi + 0x44]
cvtdq2ps xmm1, xmm1
movd xmm4, edx
cvtdq2ps xmm4, xmm4
divss xmm4, xmm1
add eax, r8d
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, xmm0
lea eax, [rcx + rdx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
mulss xmm8, dword [r14 + r12 + 0x10]
movss dword [rsp + 0x58], xmm8
movss dword [rsp + 0x50], xmm0
movss dword [rsp + 0x48], xmm2
movss dword [rsp + 0x40], xmm4
movss dword [rsp + 0x38], xmm5
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm9
movzx r8d, word [r14 + r12 + 0x18]
mov rdx, r13
mov rcx, r15
call fcn.140055424
movsxd rax, dword [r15 + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [r15 + 0x30]
cmp byte [r14 + r12 + 0x14], 0
je 0x14006b575
mov byte [rsp + 0x60], sil
or dword [rax + rcx*8 - 0x28], esi
movsxd rdx, dword [r14 + r12]
mov r10, rdx
movsxd r11, dword [rdi + 0x40]
mov qword [rbp - 0x78], r11
mov r8, qword [r14 + r12 + 0x20]
mov rcx, qword [rdi + 0x30]
movsxd rax, dword [rbp - 0x44]
imul rax, r11
movsxd r9, dword [rbp - 0x48]
test rcx, rcx
je 0x14006b610
add rcx, r9
add rcx, rax
xor eax, eax
mov dword [rsp + 0x68], eax
cmp dword [r14 + r12 + 4], eax
jle 0x14006b682
lea r9, [rdx*4]
mov qword [rbp - 0x50], r9
mov r9, r11
mov r10, qword [rbp - 0x50]
xor r11d, r11d
test edx, edx
jle 0x14006b5fb
mov r9, rcx
lea r10, [r8 + 3]
mov al, byte [r10]
mov byte [r9], al
add r11d, esi
lea r10, [r10 + 4]
add r9, rsi
mov edx, dword [r14 + r12]
cmp r11d, edx
jl 0x14006b5d6
mov eax, dword [rsp + 0x68]
mov r9, qword [rbp - 0x78]
mov r10, qword [rbp - 0x50]
add eax, esi
mov dword [rsp + 0x68], eax
add rcx, r9
add r8, r10
cmp eax, dword [r14 + r12 + 4]
jl 0x14006b5c8
jmp 0x14006b682
lea rcx, [r9 + rax]
mov rax, qword [rdi + 0x38]
lea r9, [rax + rcx*4]
xor eax, eax
mov dword [rsp + 0x68], eax
cmp dword [r14 + r12 + 4], eax
jle 0x14006b682
lea rcx, [r11*4]
mov qword [rbp - 0x78], rcx
shl r10, 2
mov qword [rbp - 0x50], r10
xor r11d, r11d
test edx, edx
jle 0x14006b66f
mov rcx, r9
mov r10, r8
sub r10, r9
mov eax, dword [rcx + r10]
mov dword [rcx], eax
add r11d, esi
lea rcx, [rcx + 4]
mov edx, dword [r14 + r12]
cmp r11d, edx
jl 0x14006b64d
mov eax, dword [rsp + 0x68]
mov rcx, qword [rbp - 0x78]
mov r10, qword [rbp - 0x50]
add eax, esi
mov dword [rsp + 0x68], eax
add r9, rcx
add r8, r10
cmp eax, dword [r14 + r12 + 4]
jl 0x14006b63d
mov r9d, dword [rsp + 0x64]
mov rdx, qword [rbp - 0x70]
mov ecx, dword [rsp + 0x70]
add ecx, esi
mov dword [rsp + 0x70], ecx
add r14, 0x28
add rdx, 0x18
mov qword [rbp - 0x70], rdx
cmp ecx, dword [rbx + 0x4c]
jl 0x14006b442
mov r13, qword [rbp - 0x68]
and qword [rbx + 0x34], 0
mov rcx, qword [rbp - 0x40]
add rbx, 0x78
add rcx, 0x90
mov qword [rbp - 0x40], rcx
sub r13, rsi
mov qword [rbp - 0x68], r13
jne 0x14006b3a7
mov r13, qword [rbp - 0x38]
mov r15d, dword [rbp - 0x80]
mov r12, qword [rbp + 0x10]
mov al, byte [rsp + 0x60]
mov byte [rdi + 0x29], al
mov eax, dword [rsp + 0x6c]
test eax, eax
jle 0x14006b70f
mov rbx, qword [rbp - 0x30]
mov r14d, eax
mov r12d, 8
mov rcx, qword [rbx]
call fcn.14003c948
add rbx, r12
sub r14, rsi
jne 0x14006b6fb
mov r12, qword [rbp + 0x10]
test r15d, r15d
jle 0x14006b753
lea rbx, [r13 + 0x18]
mov r14d, r15d
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14006b72a
call fcn.14003c948
nop
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14006b739
call fcn.14003c948
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006b74a
call fcn.14006cba0
and qword [rbx], 0
add rbx, 0x78
sub r14, rsi
jne 0x14006b71b
test r13, r13
je 0x14006b76f
and dword [rbp - 4], 0
and dword [rbp - 8], 0
mov rcx, r13
call fcn.14003c948
xor r13d, r13d
mov qword [rbp], r13
mov rcx, rdi
call fcn.140054c90
nop
test r12, r12
je 0x14006b786
mov rcx, r12
call fcn.14003c948
nop
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14006b798
mov rcx, rax
call fcn.14003c948
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006b7a8
call fcn.14003c948
nop
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x14006b7ba
mov rcx, rax
call fcn.14003c948
nop
test r13, r13
je 0x14006b7c8
mov rcx, r13
call fcn.14003c948
nop
mov al, sil
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400d5a90
lea r11, [rsp + 0x310]
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